Skip to content

Module: did-datastore

npm install @glazed/did-datastore

Classes

Type aliases

CreateOptions

Ƭ CreateOptions: Object

Type declaration

Name Type
pin? boolean

DIDDataStoreParams

Ƭ DIDDataStoreParams<ModelTypes>: Object

Type parameters

Name Type
ModelTypes extends ModelTypeAliases``ModelTypeAliases

Type declaration

Name Type
autopin? boolean
ceramic CeramicApi
model DataModel<ModelTypes> | ModelTypesToAliases<ModelTypes>

DefinitionContentType

Ƭ DefinitionContentType<ModelTypes, Alias>: ModelTypes["schemas"][ModelTypes["definitions"][Alias]]

Type parameters

Name Type
ModelTypes extends ModelTypeAliases
Alias extends keyof ModelTypes["definitions"]

DefinitionWithID

Ƭ DefinitionWithID<Config>: Definition<Config> & { id: StreamID }

Type parameters

Name Type
Config extends Record<string, unknown>Record<string, unknown>

DefinitionsContentTypes

Ƭ DefinitionsContentTypes<ModelTypes, Fallback>: Object

Type parameters

Name Type
ModelTypes extends ModelTypeAliases
Fallback Record<string, unknown>

Index signature

▪ [Key: string]: typeof Key extends keyof ModelTypes["definitions"] ? DefinitionContentType<ModelTypes, typeof Key> : Fallback


Entry

Ƭ Entry: Object

Type declaration

Name Type
id string
key string
record unknown

Functions

assertDIDstring

assertDIDstring(did): void

Parameters

Name Type
did string

Returns

void


isDIDstring

isDIDstring(did): boolean

Parameters

Name Type
did string

Returns

boolean