mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
10 lines
284 B
TypeScript
10 lines
284 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
|
||
|
export const dateSchema = {
|
||
|
$id: '#/components/schemas/dateSchema',
|
||
|
oneOf: [{ type: 'string', format: 'date-time' }, { type: 'number' }],
|
||
|
components: {},
|
||
|
} as const;
|
||
|
|
||
|
export type DateSchema = FromSchema<typeof dateSchema>;
|