Skip to main content

StateConfigKey

type

Get the key type (K) from a StateConfig

type StateConfigKey<S extends AnyStateConfig> = S extends StateConfig<infer K, infer _V> ? K : never

Import

import { StateConfigKey } from '@modular/sdk/editor';