SerializedEntity
A versioned, discriminated serialized entity.
You are reading the v8 docsDev
Type AliasTypeScript@discord-player/plugin-host
View sourcepackages/plugin-host/src/utils/serialization.ts:13type SerializedEntity<Type extends string, Data extends JSONValue, Version extends number = number>A versioned, discriminated serialized entity.
Properties
type
type: TypeEntity discriminator used by the decoder.
version
version: VersionPersistence schema version, independent of the package release.
data
data: DataPublic model data needed to reconstruct the entity.