Skip to content

ActivityPlug API / @activityplug/core / createEntityRef

Function: createEntityRef()

createEntityRef<EntityType>(raw): object

Defined in: packages/core/src/ids/opaque-id.ts:64

Type Parameters

EntityType

EntityType extends string

Parameters

raw

RawEntityId<EntityType>

Returns

object

adapter

readonly adapter: string

id

readonly id: OpaqueId

origin

readonly origin: string

rawId

readonly rawId: string

rawUrl?

readonly optional rawUrl?: string

type

readonly type: EntityType