Extracts the the type that can be set into the given metadata key type using the metadata() rule.
API
type MetadataSetterType<TKey> = TKey extends MetadataKey<any, infer TWrite, any> ? TWrite : never
Jump to details
Extracts the the type that can be set into the given metadata key type using the metadata() rule.
type MetadataSetterType<TKey> = TKey extends MetadataKey<any, infer TWrite, any> ? TWrite : never