utils_src.loader

Interface: Loader<TPointer, TOptions\>#

utils/src.Loader

Type parameters#

NameTypeDefault
TPointer-string
TOptionsSingleFileOptionsSingleFileOptions

Hierarchy#

  • Loader

Table of contents#

Methods#

Methods#

canLoad#

canLoad(pointer: TPointer, options?: TOptions): Promise<boolean\>

Parameters:#

NameType
pointerTPointer
options?TOptions

Returns: Promise<boolean\>

Defined in: packages/utils/src/loaders.ts:28


canLoadSync#

OptionalcanLoadSync(pointer: TPointer, options?: TOptions): boolean

Parameters:#

NameType
pointerTPointer
options?TOptions

Returns: boolean

Defined in: packages/utils/src/loaders.ts:29


load#

load(pointer: TPointer, options?: TOptions): Promise<Source\>

Parameters:#

NameType
pointerTPointer
options?TOptions

Returns: Promise<Source\>

Defined in: packages/utils/src/loaders.ts:30


loadSync#

OptionalloadSync(pointer: TPointer, options?: TOptions): Source

Parameters:#

NameType
pointerTPointer
options?TOptions

Returns: Source

Defined in: packages/utils/src/loaders.ts:31


loaderId#

loaderId(): string

Returns: string

Defined in: packages/utils/src/loaders.ts:27