Class: Loader

Hierarchy

  • Loader

Constructors

constructor

+ new Loader(options: LoaderOptions): Loader

Defined in fs/loader.ts:21

Parameters:

Name Type
options LoaderOptions

Returns: Loader

Properties

Private contains

contains: function

Defined in fs/loader.ts:21

Type declaration:

▸ (root: string, file: string): boolean

Parameters:

Name Type
root string
file string

Private options

options: LoaderOptions

Defined in fs/loader.ts:20


shouldLoadRelative

shouldLoadRelative: function

Defined in fs/loader.ts:19

Type declaration:

▸ (referencedFile: string): boolean

Parameters:

Name Type
referencedFile string

Methods

candidates

candidates(file: string, dirs: string[], currentFile?: undefined | string, enforceRoot?: undefined | false | true): IterableIterator‹string›

Defined in fs/loader.ts:45

Parameters:

Name Type
file string
dirs string[]
currentFile? undefined | string
enforceRoot? undefined | false | true

Returns: IterableIterator‹string›


Private dirname

dirname(path: string): string

Defined in fs/loader.ts:69

Parameters:

Name Type
path string

Returns: string


lookup

lookup(file: string, type: LookupType, sync?: undefined | false | true, currentFile?: undefined | string): IterableIterator‹string | Promise‹boolean››

Defined in fs/loader.ts:36

Parameters:

Name Type
file string
type LookupType
sync? undefined | false | true
currentFile? undefined | string

Returns: IterableIterator‹string | Promise‹boolean››


Private lookupError

lookupError(file: string, roots: string[]): any

Defined in fs/loader.ts:75

Parameters:

Name Type
file string
roots string[]

Returns: any