CompositeRegistry
Defined in: resolver/src/registry.ts:360
Registry that combines multiple registries with fallback.
Implements
Constructors
Constructor
new CompositeRegistry(
options):CompositeRegistry
Defined in: resolver/src/registry.ts:363
Parameters
options
Returns
CompositeRegistry
Methods
exists()
exists(
path):Promise<boolean>
Defined in: resolver/src/registry.ts:382
Check if a file exists in the registry.
Parameters
path
string
Path to check
Returns
Promise<boolean>
True if the file exists
Implementation of
fetch()
fetch(
path):Promise<string>
Defined in: resolver/src/registry.ts:367
Fetch the content of a file from the registry.
Parameters
path
string
Path to the file (relative to registry root)
Returns
Promise<string>
File content as string
Throws
FileNotFoundError if the file doesn’t exist
Implementation of
list()
list(
path):Promise<string[]>
Defined in: resolver/src/registry.ts:391
List files in a directory.
Parameters
path
string
Directory path
Returns
Promise<string[]>
Array of file/directory names