Update app and tooling
This commit is contained in:
parent
3046531bdd
commit
e620ec7349
4950 changed files with 2975120 additions and 10 deletions
7
node_modules/json-schema-to-ts/lib/parse-schema/ifThenElse.d.ts
generated
vendored
Normal file
7
node_modules/json-schema-to-ts/lib/parse-schema/ifThenElse.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { ParseSchema } from "../parse-schema";
|
||||
import { Intersection, Union, Exclusion } from "../meta-types";
|
||||
import { HasKeyIn } from "../utils";
|
||||
import { MergeSubSchema } from "./utils";
|
||||
export declare type ParseIfThenElseSchema<S, R = Omit<S, "if" | "then" | "else">> = HasKeyIn<S, "enum" | "const" | "type" | "anyOf" | "oneOf" | "allOf" | "not"> extends true ? Intersection<ApplyIfThenElse<S, R>, ParseSchema<R>> : ApplyIfThenElse<S, R>;
|
||||
declare type ApplyIfThenElse<S, R, I = "if" extends keyof S ? MergeSubSchema<R, S["if"]> : never> = Union<("then" extends keyof S ? Intersection<ParseSchema<I>, ParseSchema<MergeSubSchema<R, S["then"]>>> : ParseSchema<I>) | Exclusion<"else" extends keyof S ? ParseSchema<MergeSubSchema<R, S["else"]>> : ParseSchema<R>, ParseSchema<I>>>;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue