BlockSuite API Documentation / @blocksuite/blocks / createEnumMap
Function: createEnumMap()
createEnumMap<
T
>(EnumObject
):Record
<T
[keyofT
], keyofT
>
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