mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-21 13:47:39 +02:00
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
21 lines
647 B
TypeScript
21 lines
647 B
TypeScript
import { constraintSchemaBase } from './constraint-schema';
|
|
import type { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const playgroundConstraintSchema = {
|
|
$id: '#/components/schemas/playgroundConstraintSchema',
|
|
additionalProperties: false,
|
|
...constraintSchemaBase,
|
|
required: [...constraintSchemaBase.required, 'result'],
|
|
properties: {
|
|
...constraintSchemaBase.properties,
|
|
result: {
|
|
description: 'Whether this was evaluated as true or false.',
|
|
type: 'boolean',
|
|
},
|
|
},
|
|
} as const;
|
|
|
|
export type PlaygroundConstraintSchema = FromSchema<
|
|
typeof playgroundConstraintSchema
|
|
>;
|