ExtractDocumentKey type
type ExtractDocumentKey<TModel> = {
[K in keyof TModel as TModel[K] extends string | undefined
? K
: never]: TModel[K]
}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
type ExtractDocumentKey<TModel> = {
[K in keyof TModel as TModel[K] extends string | undefined
? K
: never]: TModel[K]
}