Skip to content

@graphty/graphty-element / index / LazySource

Interface: LazySource ​

Defined in: graph-io/dist/src/sources/types.d.ts:614

A source registered by its descriptor, whose code loads on first use. Experimental.

Properties ​

descriptor ​

readonly descriptor: SourceDescriptor

Defined in: graph-io/dist/src/sources/types.d.ts:618

The descriptor, available without loading the code.


id ​

readonly id: string

Defined in: graph-io/dist/src/sources/types.d.ts:616

The source id.


load ​

readonly load: () => Promise<GraphSource<never>>

Defined in: graph-io/dist/src/sources/types.d.ts:623

Load the source.

Returns ​

Promise<GraphSource<never>>

the source