Skip to content

Function: sliceOf()

sliceOf<K>(doc, id): DocumentRegistry[K]

Defined in: plugin-sdk/src/index.ts:145

Reads a plugin's slice from a document with the right type.

Type Parameters

K

K extends never

Parameters

doc

Document

id

K

Returns

DocumentRegistry[K]