SheetXL - v1.0.2
    Preparing search index...

    Function loadResource

    • Read and parse one resource file of a package: the highest-precedence copy across the resource roots, then the package's own.

      Type Parameters

      • T = unknown

      Parameters

      • kind: string

        The resource namespace, such as 'locales' or 'fonts'.

      • pkg: string

        The package the resource belongs to.

      • relPath: string

        The file's path within <kind>/<pkg>/.

      • base: string | null

        A base to search after the user resource roots, or null for none.

      • OptionalfromUrl: string

        Node only. The import.meta.url to locate the package's own resources from.

      Returns Promise<T>

      when no root has the file; the message lists every location tried.