UNPKG

@ems-press/content-api-types

Version:

Typescript types for the EMS Press Content API

7 lines (6 loc) 212 B
export declare type OptionalProperty<T> = Exclude<{ [K in keyof T]: T extends Record<K, T[K]> ? never : K; }[keyof T], undefined>; export declare type UnionMap<T extends string> = { [k in T]: unknown; };