Type Alias NameHub<Value>
NameHub<Value>: { entries: ((includeReserved?: boolean) => [string, Value][]); has: ((key: string) => boolean); keys: (() => string[]); lookup: ((...path: string[]) => Promise<any>); values: (() => Value[]); } Type declaration
entries: ((includeReserved?: boolean) => [string, Value][])
- (includeReserved?): [string, Value][]
Parameters
Optional
includeReserved: boolean
Returns [string, Value][]
has: ((key: string) => boolean)
- (key): boolean
Returns boolean
keys: (() => string[])
- (): string[]
Returns string[]
lookup: ((...path: string[]) => Promise<any>)
- (...path): Promise<any>
Returns Promise<any>
values: (() => Value[])
read-only access to a node in a name hierarchy
NOTE: We need to return arrays, not iterables, because even if marshal could allow passing a remote iterable, there would be an inordinate number of round trips for the contents of even the simplest nameHub.