UNPKG

@trapi/metadata

Version:

Generate REST-API metadata scheme from TypeScript Decorators.

6 lines 527 B
import type { DecoratorID } from '../constants'; import type { DecoratorPropertyValueSchema } from './type'; export type DecoratorRequestConsumesProperties = DecoratorPropertyValueSchema<string[]>; export type DecoratorRequestSetID = `${DecoratorID.ACCEPT}` | `${DecoratorID.CONSUMES}`; export type DecoratorRequestSetProperties<T extends DecoratorRequestSetID> = T extends `${DecoratorID.ACCEPT}` ? never : T extends `${DecoratorID.CONSUMES}` ? DecoratorRequestConsumesProperties : never; //# sourceMappingURL=request.d.ts.map