RegistrySource
interface exported by @mwillbanks/tuil-registry.
interface
Public interface exported by @mwillbanks/tuil-registry.
export interface RegistrySource {
readonly id: string;
get(name: string, signal?: AbortSignal): Promise<RegistryItem | undefined>;
list(signal?: AbortSignal): Promise<readonly RegistryIndexEntry[]>;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
id | string | Yes | The id member uses the string contract. | — |
get | (name: string, signal?: AbortSignal) => Promise<RegistryItem | undefined> | Yes | The get member uses the (name: string, signal?: AbortSignal) => Promise<RegistryItem | undefined> contract. | RegistryItem |
list | (signal?: AbortSignal) => Promise<readonly RegistryIndexEntry[]> | Yes | The list member uses the (signal?: AbortSignal) => Promise<readonly RegistryIndexEntry[]> contract. | RegistryIndexEntry |
Parameters
This declaration has no public members.
Returns
This declaration does not return a value.
Throws
No thrown errors are documented for this declaration.
Related types
Source
View the secondary source reference