Skip to content

Class: PublicID<ModelTypes, Alias>

core.PublicID

import { PublicID } from '@self.id/core'

Type parameters

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

Constructors

constructor

new PublicID<ModelTypes, Alias>(params)

Type parameters

Name Type
ModelTypes extends CoreModelTypesCoreModelTypes
Alias extends string | number | symbolkeyof ModelTypes["definitions"]

Parameters

Name Type
params PublicIDParams<ModelTypes>

Accessors

id

get id(): string

Returns

string

Methods

get

get<Key, ContentType>(key): Promise<null | ContentType>

Type parameters

Name Type
Key extends string | number | symbol
ContentType DefinitionContentType<ModelTypes, Key>

Parameters

Name Type
key Key

Returns

Promise<null | ContentType>