Skip to content

BlockSuite API Documentation / @blocksuite/blocks / createEnumMap

Function: createEnumMap()

createEnumMap<T>(EnumObject): Record<T[keyof T], keyof T>

Type Parameters

T extends Record<string, string | number>

Parameters

EnumObject: T

Returns

Record<T[keyof T], keyof T>

Defined in

packages/affine/model/dist/utils/enum.d.ts:1