mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
24 lines
602 B
TypeScript
24 lines
602 B
TypeScript
import type { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const idsSchema = {
|
|
$id: '#/components/schemas/idsSchema',
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
description: 'Used for bulk deleting multiple ids',
|
|
required: ['ids'],
|
|
properties: {
|
|
ids: {
|
|
type: 'array',
|
|
description: 'Ids, for instance userid',
|
|
items: {
|
|
type: 'number',
|
|
minimum: 0,
|
|
},
|
|
example: [12, 212],
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type IdsSchema = FromSchema<typeof idsSchema>;
|