UNPKG

@ems-press/content-api-types

Version:

Typescript types for the EMS Press Content API

6 lines (5 loc) 256 B
import * as Resources from './resources/index'; export declare type Field<T extends Resources.Type> = keyof Resources.AttributesForType<T> | keyof Resources.RelationshipsForType<T>; export declare type Fields = { [t in Resources.Type]?: Field<t>[]; };