BlockSuite API Documentation / @blocksuite/affine-model / 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/src/utils/enum.ts:1