Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Id

Index

Definitions

Definition

Definition<C, N>: { idFields: IdFields<C, N> }

Type parameters

Type declaration

Definitions

Definitions<C>: {[ N in CollectionName<C>]: Definition<C, N> }

Type parameters

Other

IdObject

Re-exports IdObject

GenerateId

GenerateId<C>: <N>(collectionName: N, input: Input<C, N> | StrictIdInput<C, N> | undefined) => string | undefined

Type parameters

Type declaration

SpecificGenerateId

SpecificGenerateId<C, N>: (input: Input<C, N> | StrictIdInput<C, N> | undefined) => string | undefined

Type parameters

Type declaration

StrictIdInput

StrictIdInput<C, N>: IdField<C, N> extends keyof Input<C, N> ? Pick<Input<C, N>, IdField<C, N>> : Input<C, N>

Type parameters

Const forDefinitions

Const toIdObject

  • toIdObject<C, N, R, I>(resource: I): Pick<R, "id"> extends I ? IdObject<C, N, R> : undefined | IdObject<C, N, R>

Generated using TypeDoc