Test case
1 generated file · +1 −1test/inputs/regressions/unicode-codepoint-length.schema
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -11,7 +11,7 @@ export interface TopLevel { | ||
| 11 | 11 | exact: string; |
| 12 | 12 | maximum: string; |
| 13 | 13 | minimum: string; |
| 14 | - [property: string]: unknown | string | string | string; | |
| 14 | + [property: string]: unknown; | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/any.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | foo: mixed; |
| 14 | 14 | values: { [key: string]: mixed }; |
| 15 | - [property: string]: mixed | mixed | { [key: string]: mixed }; | |
| 15 | + [property: string]: mixed; | |
| 16 | 16 | }; |
| 17 | 17 | |
| 18 | 18 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | foo: unknown; |
| 12 | 12 | values: { [key: string]: unknown }; |
| 13 | - [property: string]: unknown | unknown | { [key: string]: unknown }; | |
| 13 | + [property: string]: unknown; | |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/bool-string.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -17,7 +17,7 @@ export type TopLevel = { | ||
| 17 | 17 | optional?: string; |
| 18 | 18 | unionWithBool: UnionWithBool; |
| 19 | 19 | unionWithBoolAndEnum: UnionWithBool; |
| 20 | - [property: string]: mixed | (null | string)[] | string[] | null | string | string | string | UnionWithBool | UnionWithBool; | |
| 20 | + [property: string]: mixed; | |
| 21 | 21 | }; |
| 22 | 22 | |
| 23 | 23 | export type UnionWithBool = boolean | string; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -15,7 +15,7 @@ export interface TopLevel { | ||
| 15 | 15 | optional?: string; |
| 16 | 16 | unionWithBool: UnionWithBool; |
| 17 | 17 | unionWithBoolAndEnum: UnionWithBool; |
| 18 | - [property: string]: unknown | (null | string)[] | string[] | null | string | string | string | UnionWithBool | UnionWithBool; | |
| 18 | + [property: string]: unknown; | |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | export type UnionWithBool = boolean | string; |
Test case
2 generated files · +2 −2test/inputs/schema/camelCase.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | myProperty?: string; |
| 14 | 14 | secondProperty?: string; |
| 15 | - [property: string]: mixed | string | string; | |
| 15 | + [property: string]: mixed; | |
| 16 | 16 | }; |
| 17 | 17 | |
| 18 | 18 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | myProperty?: string; |
| 12 | 12 | secondProperty?: string; |
| 13 | - [property: string]: unknown | string | string; | |
| 13 | + [property: string]: unknown; | |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | // Converts JSON strings to/from your types |
Test case
2 generated files · +4 −4test/inputs/schema/class-map-union.schema
Mschema-flowdefault / TopLevel.js+2 −2
| @@ -16,14 +16,14 @@ export type TopLevel = { | ||
| 16 | 16 | export type TopLevelUnion = { |
| 17 | 17 | foo?: Foo; |
| 18 | 18 | bar?: Bar; |
| 19 | - [property: string]: UnionValue | Foo | Bar; | |
| 19 | + [property: string]: UnionValue | Foo | Bar | void; | |
| 20 | 20 | }; |
| 21 | 21 | |
| 22 | 22 | export type Bar = boolean | BarObject | string; |
| 23 | 23 | |
| 24 | 24 | export type BarObject = { |
| 25 | 25 | quux?: number; |
| 26 | - [property: string]: mixed | number; | |
| 26 | + [property: string]: mixed; | |
| 27 | 27 | }; |
| 28 | 28 | |
| 29 | 29 | export type Foo = boolean | number | BarObject; |
Mschema-typescriptdefault / TopLevel.ts+2 −2
| @@ -14,14 +14,14 @@ export interface TopLevel { | ||
| 14 | 14 | export interface TopLevelUnion { |
| 15 | 15 | foo?: Foo; |
| 16 | 16 | bar?: Bar; |
| 17 | - [property: string]: UnionValue | Foo | Bar; | |
| 17 | + [property: string]: UnionValue | Foo | Bar | undefined; | |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | export type Bar = boolean | BarObject | string; |
| 21 | 21 | |
| 22 | 22 | export interface BarObject { |
| 23 | 23 | quux?: number; |
| 24 | - [property: string]: unknown | number; | |
| 24 | + [property: string]: unknown; | |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | export type Foo = boolean | number | BarObject; |
Test case
2 generated files · +2 −2test/inputs/schema/class-with-additional.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -15,7 +15,7 @@ export type TopLevel = { | ||
| 15 | 15 | |
| 16 | 16 | export type Map = { |
| 17 | 17 | foo?: number; |
| 18 | - [property: string]: boolean | number; | |
| 18 | + [property: string]: boolean | number | void; | |
| 19 | 19 | }; |
| 20 | 20 | |
| 21 | 21 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -13,7 +13,7 @@ export interface TopLevel { | ||
| 13 | 13 | |
| 14 | 14 | export interface Map { |
| 15 | 15 | foo?: number; |
| 16 | - [property: string]: boolean | number; | |
| 16 | + [property: string]: boolean | number | undefined; | |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/const-non-string.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -15,7 +15,7 @@ export type TopLevel = { | ||
| 15 | 15 | kind: Kind; |
| 16 | 16 | ratio: number; |
| 17 | 17 | version: number; |
| 18 | - [property: string]: mixed | number | boolean | Kind | number | number; | |
| 18 | + [property: string]: mixed; | |
| 19 | 19 | }; |
| 20 | 20 | |
| 21 | 21 | export type Kind = |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -13,7 +13,7 @@ export interface TopLevel { | ||
| 13 | 13 | kind: Kind; |
| 14 | 14 | ratio: number; |
| 15 | 15 | version: number; |
| 16 | - [property: string]: unknown | number | boolean | Kind | number | number; | |
| 16 | + [property: string]: unknown; | |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | export type Kind = "widget"; |
Test case
2 generated files · +2 −2test/inputs/schema/constructor.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | constructor?: UnionConstructor; |
| 14 | - [property: string]: mixed | UnionConstructor; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | export type UnionConstructor = Constructor | number; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | constructor?: UnionConstructor; |
| 12 | - [property: string]: unknown | UnionConstructor; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | export type UnionConstructor = object | number; |
Test case
2 generated files · +2 −2test/inputs/schema/cut-enum.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | foo: number; |
| 14 | - [property: string]: mixed | number; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | foo: number; |
| 12 | - [property: string]: unknown | number; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/date-time-or-string.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | bar: BarUnion; |
| 14 | 14 | foo: string; |
| 15 | - [property: string]: mixed | BarUnion | string; | |
| 15 | + [property: string]: mixed; | |
| 16 | 16 | }; |
| 17 | 17 | |
| 18 | 18 | export type BarUnion = Date | BarEnum; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | bar: BarUnion; |
| 12 | 12 | foo: string; |
| 13 | - [property: string]: unknown | BarUnion | string; | |
| 13 | + [property: string]: unknown; | |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | export type BarUnion = Date | BarEnum; |
Test case
2 generated files · +2 −2test/inputs/schema/description-with-double-quotes.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -14,7 +14,7 @@ | ||
| 14 | 14 | */ |
| 15 | 15 | export type TopLevel = { |
| 16 | 16 | foo?: boolean; |
| 17 | - [property: string]: mixed | boolean; | |
| 17 | + [property: string]: mixed; | |
| 18 | 18 | }; |
| 19 | 19 | |
| 20 | 20 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ |
| 13 | 13 | export interface TopLevel { |
| 14 | 14 | foo?: boolean; |
| 15 | - [property: string]: unknown | boolean; | |
| 15 | + [property: string]: unknown; | |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/description.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -44,7 +44,7 @@ export type ObjectOrStringObject = { | ||
| 44 | 44 | * This must not get lost |
| 45 | 45 | */ |
| 46 | 46 | prop: number; |
| 47 | - [property: string]: mixed | number; | |
| 47 | + [property: string]: mixed; | |
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | 50 | /** |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -40,7 +40,7 @@ export interface ObjectOrStringObject { | ||
| 40 | 40 | * This must not get lost |
| 41 | 41 | */ |
| 42 | 42 | prop: number; |
| 43 | - [property: string]: unknown | number; | |
| 43 | + [property: string]: unknown; | |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
Test case
2 generated files · +2 −2test/inputs/schema/enum-large.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | callsign: Callsign; |
| 14 | 14 | priority: Priority; |
| 15 | - [property: string]: mixed | Callsign | Priority; | |
| 15 | + [property: string]: mixed; | |
| 16 | 16 | }; |
| 17 | 17 | |
| 18 | 18 | export type Callsign = |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | callsign: Callsign; |
| 12 | 12 | priority: Priority; |
| 13 | - [property: string]: unknown | Callsign | Priority; | |
| 13 | + [property: string]: unknown; | |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | export type Callsign = "alpha" | "bravo" | "charlie" | "delta" | "echo" | "foxtrot" | "golf" | "hotel" | "india" | "juliett" | "kilo" | "lima" | "mike" | "november" | "oscar" | "papa" | "quebec" | "romeo" | "sierra" | "tango"; |
Test case
2 generated files · +2 −2test/inputs/schema/enum-with-values.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | weekdays: Weekdays; |
| 14 | - [property: string]: mixed | Weekdays; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | export type Weekdays = |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | weekdays: Weekdays; |
| 12 | - [property: string]: unknown | Weekdays; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | export type Weekdays = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"; |
Test case
2 generated files · +2 −2test/inputs/schema/enum.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -15,7 +15,7 @@ export type TopLevel = { | ||
| 15 | 15 | gve: Gve; |
| 16 | 16 | lvc?: Lvc; |
| 17 | 17 | otherArr?: OtherArr[]; |
| 18 | - [property: string]: mixed | Arr[] | string | Gve | Lvc | OtherArr[]; | |
| 18 | + [property: string]: mixed; | |
| 19 | 19 | }; |
| 20 | 20 | |
| 21 | 21 | export type Arr = OtherArr | number; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -13,7 +13,7 @@ export interface TopLevel { | ||
| 13 | 13 | gve: Gve; |
| 14 | 14 | lvc?: Lvc; |
| 15 | 15 | otherArr?: OtherArr[]; |
| 16 | - [property: string]: unknown | Arr[] | string | Gve | Lvc | OtherArr[]; | |
| 16 | + [property: string]: unknown; | |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | export type Arr = OtherArr | number; |
Test case
2 generated files · +2 −2test/inputs/schema/fractional-bounds.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | value: number; |
| 14 | - [property: string]: mixed | number; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | value: number; |
| 12 | - [property: string]: unknown | number; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/go-schema-pattern-properties.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | map: { [key: string]: number }; |
| 14 | - [property: string]: mixed | { [key: string]: number }; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | map: { [key: string]: number }; |
| 12 | - [property: string]: unknown | { [key: string]: number }; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/haskell-enum-forbidden.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | health: Health; |
| 14 | - [property: string]: mixed | Health; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | export type Health = |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | health: Health; |
| 12 | - [property: string]: unknown | Health; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | export type Health = "ok" | "error"; |
Test case
2 generated files · +2 −2test/inputs/schema/id-no-address.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | item: number; |
| 14 | - [property: string]: mixed | number; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | item: number; |
| 12 | - [property: string]: unknown | number; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/id-root.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | bar: number; |
| 14 | - [property: string]: mixed | number; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | bar: number; |
| 12 | - [property: string]: unknown | number; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | // Converts JSON strings to/from your types |
Test case
2 generated files · +4 −4test/inputs/schema/ie-suffix-singularization.schema
Mschema-flowdefault / TopLevel.js+2 −2
| @@ -11,13 +11,13 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | cookies: Cookie[]; |
| 14 | - [property: string]: mixed | Cookie[]; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | export type Cookie = { |
| 18 | 18 | name: string; |
| 19 | 19 | value: string; |
| 20 | - [property: string]: mixed | string | string; | |
| 20 | + [property: string]: mixed; | |
| 21 | 21 | }; |
| 22 | 22 | |
| 23 | 23 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+2 −2
| @@ -9,13 +9,13 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | cookies: Cookie[]; |
| 12 | - [property: string]: unknown | Cookie[]; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | export interface Cookie { |
| 16 | 16 | name: string; |
| 17 | 17 | value: string; |
| 18 | - [property: string]: unknown | string | string; | |
| 18 | + [property: string]: unknown; | |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/implicit-all-of.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -13,7 +13,7 @@ export type TopLevel = { | ||
| 13 | 13 | foo: number; |
| 14 | 14 | bar: boolean; |
| 15 | 15 | quux: string; |
| 16 | - [property: string]: mixed | number | boolean | string; | |
| 16 | + [property: string]: mixed; | |
| 17 | 17 | }; |
| 18 | 18 | |
| 19 | 19 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -11,7 +11,7 @@ export interface TopLevel { | ||
| 11 | 11 | foo: number; |
| 12 | 12 | bar: boolean; |
| 13 | 13 | quux: string; |
| 14 | - [property: string]: unknown | number | boolean | string; | |
| 14 | + [property: string]: unknown; | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Test case
2 generated files · +4 −4test/inputs/schema/implicit-class-array-union.schema
Mschema-flowdefault / TopLevel.js+2 −2
| @@ -11,14 +11,14 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | foo: FooUnion; |
| 14 | - [property: string]: mixed | FooUnion; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | export type FooUnion = number[] | boolean | number | number | null | FooObject | string; |
| 18 | 18 | |
| 19 | 19 | export type FooObject = { |
| 20 | 20 | bar: number; |
| 21 | - [property: string]: mixed | number; | |
| 21 | + [property: string]: mixed; | |
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+2 −2
| @@ -9,14 +9,14 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | foo: FooUnion; |
| 12 | - [property: string]: unknown | FooUnion; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | export type FooUnion = number[] | boolean | number | number | null | FooObject | string; |
| 16 | 16 | |
| 17 | 17 | export interface FooObject { |
| 18 | 18 | bar: number; |
| 19 | - [property: string]: unknown | number; | |
| 19 | + [property: string]: unknown; | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/implicit-one-of.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -13,7 +13,7 @@ export type TopLevel = { | ||
| 13 | 13 | foo: number; |
| 14 | 14 | bar?: boolean; |
| 15 | 15 | quux?: string; |
| 16 | - [property: string]: mixed | number | boolean | string; | |
| 16 | + [property: string]: mixed; | |
| 17 | 17 | }; |
| 18 | 18 | |
| 19 | 19 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -11,7 +11,7 @@ export interface TopLevel { | ||
| 11 | 11 | foo: number; |
| 12 | 12 | bar?: boolean; |
| 13 | 13 | quux?: string; |
| 14 | - [property: string]: unknown | number | boolean | string; | |
| 14 | + [property: string]: unknown; | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/integer-float-union.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | number: number; |
| 14 | - [property: string]: mixed | number; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | number: number; |
| 12 | - [property: string]: unknown | number; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/integer-string.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -17,7 +17,7 @@ export type TopLevel = { | ||
| 17 | 17 | optional?: string; |
| 18 | 18 | unionWithInt: UnionWithInt; |
| 19 | 19 | unionWithIntAndEnum: UnionWithInt; |
| 20 | - [property: string]: mixed | (null | string)[] | string[] | null | string | string | string | UnionWithInt | UnionWithInt; | |
| 20 | + [property: string]: mixed; | |
| 21 | 21 | }; |
| 22 | 22 | |
| 23 | 23 | export type UnionWithInt = number | string; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -15,7 +15,7 @@ export interface TopLevel { | ||
| 15 | 15 | optional?: string; |
| 16 | 16 | unionWithInt: UnionWithInt; |
| 17 | 17 | unionWithIntAndEnum: UnionWithInt; |
| 18 | - [property: string]: unknown | (null | string)[] | string[] | null | string | string | string | UnionWithInt | UnionWithInt; | |
| 18 | + [property: string]: unknown; | |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | export type UnionWithInt = number | string; |
Test case
2 generated files · +2 −2test/inputs/schema/integer-type.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -19,7 +19,7 @@ export type TopLevel = { | ||
| 19 | 19 | small_negative: number; |
| 20 | 20 | small_positive: number; |
| 21 | 21 | unbounded: number; |
| 22 | - [property: string]: mixed | number | number | number | number | number | number | number | number | number; | |
| 22 | + [property: string]: mixed; | |
| 23 | 23 | }; |
| 24 | 24 | |
| 25 | 25 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -17,7 +17,7 @@ export interface TopLevel { | ||
| 17 | 17 | small_negative: number; |
| 18 | 18 | small_positive: number; |
| 19 | 19 | unbounded: number; |
| 20 | - [property: string]: unknown | number | number | number | number | number | number | number | number | number; | |
| 20 | + [property: string]: unknown; | |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/intersection.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -16,7 +16,7 @@ export type TopLevel = { | ||
| 16 | 16 | export type Intersection = { |
| 17 | 17 | foo: number; |
| 18 | 18 | bar?: string; |
| 19 | - [property: string]: mixed | number | string; | |
| 19 | + [property: string]: mixed; | |
| 20 | 20 | }; |
| 21 | 21 | |
| 22 | 22 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -14,7 +14,7 @@ export interface TopLevel { | ||
| 14 | 14 | export interface Intersection { |
| 15 | 15 | foo: number; |
| 16 | 16 | bar?: string; |
| 17 | - [property: string]: unknown | number | string; | |
| 17 | + [property: string]: unknown; | |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/keyword-enum.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | enum?: Enum; |
| 14 | - [property: string]: mixed | Enum; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | export type Enum = |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | enum?: Enum; |
| 12 | - [property: string]: unknown | Enum; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "break" | "bycopy" | "byref" | "byte" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "co_await" | "co_return" | "co_yield" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "date" | "date_parse_handling" | "debugger" | "decimal" | "declare" | "decltype" | "decode_string" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "enum" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "friend" | "from" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "interface" | "internal" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "lambda" | "lazy" | "left" | "let" | "list" | "lock" | "long" | "map" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "not" | "not_eq" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "self" | "serialize" | "set" | "short" | "signed" | "sizeof" | "stackalloc" | "static" | "static_assert" | "static_cast" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "thread_local" | "throw" | "throws" | "to_json" | "top_level" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy"; |
Test case
2 generated files · +2 −2test/inputs/schema/keyword-unions.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -287,7 +287,7 @@ export type TopLevel = { | ||
| 287 | 287 | xor_eq?: UnionXorEq; |
| 288 | 288 | YES?: UnionYES; |
| 289 | 289 | yield?: UnionYield; |
| 290 | - [property: string]: mixed | UnionUnion | UnionBool | UnionComplex | UnionImaginery | UnionAbstract | UnionAlignas | UnionAlignof | UnionAnd | UnionAndEq | UnionAnyUnion | UnionAny | UnionArray | UnionAs | UnionASM | UnionAssert | UnionAssociatedtype | UnionAssociativity | UnionAsync | UnionAtomic | UnionAtomicCancel | UnionAtomicCommit | UnionAtomicNoexcept | UnionAuto | UnionAwait | UnionBase | UnionBitand | UnionBitor | UnionBOOL | UnionBoolUnion | UnionBoolean | UnionBreak | UnionBycopy | UnionByref | UnionByte | UnionCase | UnionCatch | UnionChan | UnionChar | UnionChar16T | UnionChar32T | UnionChecked | UnionClassUnion | UnionClass | UnionCoAwait | UnionCoReturn | UnionCoYield | UnionCompl | UnionConcept | UnionConsole | UnionConst | UnionConstCast | UnionConstexpr | UnionConstructor | UnionContinue | UnionConvenience | UnionConvert | UnionConverter | UnionDate | UnionDateParseHandling | UnionDebugger | UnionDecimal | UnionDeclare | UnionDecltype | UnionDecodeString | UnionDef | UnionDefault | UnionDefer | UnionDeinit | UnionDel | UnionDelegate | UnionDelete | UnionDict | UnionDictionary | UnionDidSet | UnionDo | UnionDouble | number | UnionDynamic | UnionDynamicCast | UnionElif | UnionElse | UnionEncodeQuickType | UnionEnum | UnionEvent | UnionExcept | UnionException | UnionExplicit | UnionExport | UnionExposing | UnionExtends | UnionExtension | UnionExtern | UnionFallthrough | UnionFalseUnion | UnionFalse | UnionFileprivate | UnionFinal | UnionFinally | UnionFixed | UnionFloat | UnionFor | UnionForeach | UnionFriend | UnionFrom | UnionFromJSON | UnionFunc | UnionFunction | UnionGet | UnionGlobal | UnionGo | UnionGoto | UnionGuard | UnionHasOwnProperty | UnionID | UnionIf | UnionIMP | UnionImplements | UnionImplicit | UnionImport | UnionIn | UnionIndirect | UnionInfix | UnionInit | UnionInline | UnionInout | UnionInstanceof | UnionInt | UnionInterface | UnionInternal | UnionIs | UnionIterable | UnionJdec | UnionJenc | UnionJpipe | UnionJSON | UnionJSONConverter | UnionJSONSerializer | UnionJSONToken | UnionJSONWriter | UnionLambda | UnionLazy | UnionLeft | UnionLet | UnionList | UnionLock | UnionLong | UnionMap | UnionMetadataPropertyHandling | UnionModule | UnionMutable | UnionMutating | UnionNamespace | UnionNative | UnionNew | UnionNewtonsoft | UnionNil | UnionNO | UnionNoexcept | UnionNonatomic | UnionNoneUnion | UnionNone | UnionNonlocal | UnionNonmutating | UnionNot | UnionNotEq | UnionNSString | UnionNULL | UnionNull | UnionNullptr | UnionNumber | UnionObject | UnionOf | UnionOneway | UnionOpen | UnionOperator | UnionOptional | UnionOr | UnionOrEq | UnionOut | UnionOverride | UnionPackage | UnionParams | UnionPass | UnionPort | UnionPostfix | UnionPrecedence | UnionPrefix | UnionPrint | UnionPrintf | UnionPrivate | UnionProtected | UnionProtocol | UnionProtocolUnion | UnionPublic | UnionQuicktype | UnionRaise | UnionRange | UnionReadonly | UnionRef | UnionRegister | UnionReinterpretCast | UnionRepeat | UnionRequire | UnionRequired | UnionRequires | UnionRestrict | UnionRetain | UnionRethrows | UnionReturn | UnionRight | UnionSbyte | UnionSealed | UnionSEL | UnionSelect | UnionSelf | UnionSelfUnion | UnionSerialize | UnionSet | UnionShort | UnionSigned | UnionSizeof | UnionStackalloc | UnionStatic | UnionStaticAssert | UnionStaticCast | UnionStrictfp | UnionString | UnionStruct | UnionSubscript | UnionSuper | UnionSwitch | UnionSymbol | UnionSynchronized | UnionSystem | UnionTemplate | UnionThen | UnionThis | UnionThreadLocal | UnionThrow | UnionThrows | UnionToJSON | UnionTopLevel | UnionTransient | UnionTrue | UnionTrueUnion | UnionTry | UnionType | UnionTypeUnion | UnionTypealias | UnionTypedef | UnionTypeid | UnionTypename | UnionTypeof | UnionUint | UnionUlong | UnionUnchecked | UnionUndefined | UnionUnionUnion | UnionUnowned | UnionUnsafe | UnionUnsigned | UnionUshort | UnionUsing | UnionVar | UnionVirtual | UnionVoid | UnionVolatile | UnionWcharT | UnionWeak | UnionWhere | UnionWhile | UnionWillSet | UnionWith | UnionXor | UnionXorEq | UnionYES | UnionYield; | |
| 290 | + [property: string]: mixed; | |
| 291 | 291 | }; |
| 292 | 292 | |
| 293 | 293 | export type UnionAny = Any | number; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -285,7 +285,7 @@ export interface TopLevel { | ||
| 285 | 285 | xor_eq?: UnionXorEq; |
| 286 | 286 | YES?: UnionYES; |
| 287 | 287 | yield?: UnionYield; |
| 288 | - [property: string]: unknown | UnionUnion | UnionBool | UnionComplex | UnionImaginery | UnionAbstract | UnionAlignas | UnionAlignof | UnionAnd | UnionAndEq | UnionAnyUnion | UnionAny | UnionArray | UnionAs | UnionASM | UnionAssert | UnionAssociatedtype | UnionAssociativity | UnionAsync | UnionAtomic | UnionAtomicCancel | UnionAtomicCommit | UnionAtomicNoexcept | UnionAuto | UnionAwait | UnionBase | UnionBitand | UnionBitor | UnionBOOL | UnionBoolUnion | UnionBoolean | UnionBreak | UnionBycopy | UnionByref | UnionByte | UnionCase | UnionCatch | UnionChan | UnionChar | UnionChar16T | UnionChar32T | UnionChecked | UnionClassUnion | UnionClass | UnionCoAwait | UnionCoReturn | UnionCoYield | UnionCompl | UnionConcept | UnionConsole | UnionConst | UnionConstCast | UnionConstexpr | UnionConstructor | UnionContinue | UnionConvenience | UnionConvert | UnionConverter | UnionDate | UnionDateParseHandling | UnionDebugger | UnionDecimal | UnionDeclare | UnionDecltype | UnionDecodeString | UnionDef | UnionDefault | UnionDefer | UnionDeinit | UnionDel | UnionDelegate | UnionDelete | UnionDict | UnionDictionary | UnionDidSet | UnionDo | UnionDouble | number | UnionDynamic | UnionDynamicCast | UnionElif | UnionElse | UnionEncodeQuickType | UnionEnum | UnionEvent | UnionExcept | UnionException | UnionExplicit | UnionExport | UnionExposing | UnionExtends | UnionExtension | UnionExtern | UnionFallthrough | UnionFalseUnion | UnionFalse | UnionFileprivate | UnionFinal | UnionFinally | UnionFixed | UnionFloat | UnionFor | UnionForeach | UnionFriend | UnionFrom | UnionFromJSON | UnionFunc | UnionFunction | UnionGet | UnionGlobal | UnionGo | UnionGoto | UnionGuard | UnionHasOwnProperty | UnionID | UnionIf | UnionIMP | UnionImplements | UnionImplicit | UnionImport | UnionIn | UnionIndirect | UnionInfix | UnionInit | UnionInline | UnionInout | UnionInstanceof | UnionInt | UnionInterface | UnionInternal | UnionIs | UnionIterable | UnionJdec | UnionJenc | UnionJpipe | UnionJSON | UnionJSONConverter | UnionJSONSerializer | UnionJSONToken | UnionJSONWriter | UnionLambda | UnionLazy | UnionLeft | UnionLet | UnionList | UnionLock | UnionLong | UnionMap | UnionMetadataPropertyHandling | UnionModule | UnionMutable | UnionMutating | UnionNamespace | UnionNative | UnionNew | UnionNewtonsoft | UnionNil | UnionNO | UnionNoexcept | UnionNonatomic | UnionNoneUnion | UnionNone | UnionNonlocal | UnionNonmutating | UnionNot | UnionNotEq | UnionNSString | UnionNULL | UnionNull | UnionNullptr | UnionNumber | UnionObject | UnionOf | UnionOneway | UnionOpen | UnionOperator | UnionOptional | UnionOr | UnionOrEq | UnionOut | UnionOverride | UnionPackage | UnionParams | UnionPass | UnionPort | UnionPostfix | UnionPrecedence | UnionPrefix | UnionPrint | UnionPrintf | UnionPrivate | UnionProtected | UnionProtocol | UnionProtocolUnion | UnionPublic | UnionQuicktype | UnionRaise | UnionRange | UnionReadonly | UnionRef | UnionRegister | UnionReinterpretCast | UnionRepeat | UnionRequire | UnionRequired | UnionRequires | UnionRestrict | UnionRetain | UnionRethrows | UnionReturn | UnionRight | UnionSbyte | UnionSealed | UnionSEL | UnionSelect | UnionSelf | UnionSelfUnion | UnionSerialize | UnionSet | UnionShort | UnionSigned | UnionSizeof | UnionStackalloc | UnionStatic | UnionStaticAssert | UnionStaticCast | UnionStrictfp | UnionString | UnionStruct | UnionSubscript | UnionSuper | UnionSwitch | UnionSymbol | UnionSynchronized | UnionSystem | UnionTemplate | UnionThen | UnionThis | UnionThreadLocal | UnionThrow | UnionThrows | UnionToJSON | UnionTopLevel | UnionTransient | UnionTrue | UnionTrueUnion | UnionTry | UnionType | UnionTypeUnion | UnionTypealias | UnionTypedef | UnionTypeid | UnionTypename | UnionTypeof | UnionUint | UnionUlong | UnionUnchecked | UnionUndefined | UnionUnionUnion | UnionUnowned | UnionUnsafe | UnionUnsigned | UnionUshort | UnionUsing | UnionVar | UnionVirtual | UnionVoid | UnionVolatile | UnionWcharT | UnionWeak | UnionWhere | UnionWhile | UnionWillSet | UnionWith | UnionXor | UnionXorEq | UnionYES | UnionYield; | |
| 288 | + [property: string]: unknown; | |
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | export type UnionAny = object | number; |
Test case
2 generated files · +2 −2test/inputs/schema/list.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -14,7 +14,7 @@ | ||
| 14 | 14 | */ |
| 15 | 15 | export type TopLevel = { |
| 16 | 16 | next?: TopLevel; |
| 17 | - [property: string]: mixed | TopLevel; | |
| 17 | + [property: string]: mixed; | |
| 18 | 18 | }; |
| 19 | 19 | |
| 20 | 20 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ |
| 13 | 13 | export interface TopLevel { |
| 14 | 14 | next?: TopLevel; |
| 15 | - [property: string]: unknown | TopLevel; | |
| 15 | + [property: string]: unknown; | |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/min-max-items.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -15,7 +15,7 @@ export type TopLevel = { | ||
| 15 | 15 | minOnly: string[]; |
| 16 | 16 | plain: string[]; |
| 17 | 17 | unionItems: UnionItem[]; |
| 18 | - [property: string]: mixed | number[] | number[] | string[] | string[] | UnionItem[]; | |
| 18 | + [property: string]: mixed; | |
| 19 | 19 | }; |
| 20 | 20 | |
| 21 | 21 | export type UnionItem = number | string; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -13,7 +13,7 @@ export interface TopLevel { | ||
| 13 | 13 | minOnly: [string, string, ...string[]]; |
| 14 | 14 | plain: string[]; |
| 15 | 15 | unionItems: [UnionItem, UnionItem, ...UnionItem[]]; |
| 16 | - [property: string]: unknown | number[] | [number, ...number[]] | [string, string, ...string[]] | string[] | [UnionItem, UnionItem, ...UnionItem[]]; | |
| 16 | + [property: string]: unknown; | |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | export type UnionItem = number | string; |
Test case
2 generated files · +2 −2test/inputs/schema/minmax-integer.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -18,7 +18,7 @@ export type TopLevel = { | ||
| 18 | 18 | minMaxIntersection: number; |
| 19 | 19 | minMaxUnion: number; |
| 20 | 20 | union: number; |
| 21 | - [property: string]: mixed | number | number | number | number | number | number | number | number; | |
| 21 | + [property: string]: mixed; | |
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -16,7 +16,7 @@ export interface TopLevel { | ||
| 16 | 16 | minMaxIntersection: number; |
| 17 | 17 | minMaxUnion: number; |
| 18 | 18 | union: number; |
| 19 | - [property: string]: unknown | number | number | number | number | number | number | number | number; | |
| 19 | + [property: string]: unknown; | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/minmax.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -18,7 +18,7 @@ export type TopLevel = { | ||
| 18 | 18 | minMaxIntersection: number; |
| 19 | 19 | minMaxUnion: number; |
| 20 | 20 | union: number; |
| 21 | - [property: string]: mixed | number | number | number | number | number | number | number | number; | |
| 21 | + [property: string]: mixed; | |
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -16,7 +16,7 @@ export interface TopLevel { | ||
| 16 | 16 | minMaxIntersection: number; |
| 17 | 17 | minMaxUnion: number; |
| 18 | 18 | union: number; |
| 19 | - [property: string]: unknown | number | number | number | number | number | number | number | number; | |
| 19 | + [property: string]: unknown; | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/minmaxlength.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -18,7 +18,7 @@ export type TopLevel = { | ||
| 18 | 18 | minmaxlength: string; |
| 19 | 19 | minMaxUnion: string; |
| 20 | 20 | union: string; |
| 21 | - [property: string]: mixed | string | InUnion | string | string | string | string | string | string; | |
| 21 | + [property: string]: mixed; | |
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | export type InUnion = number | string; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -16,7 +16,7 @@ export interface TopLevel { | ||
| 16 | 16 | minmaxlength: string; |
| 17 | 17 | minMaxUnion: string; |
| 18 | 18 | union: string; |
| 19 | - [property: string]: unknown | string | InUnion | string | string | string | string | string | string; | |
| 19 | + [property: string]: unknown; | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | export type InUnion = number | string; |
Test case
2 generated files · +2 −2test/inputs/schema/multi-type-enum.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | foo: FooUnion; |
| 14 | - [property: string]: mixed | FooUnion; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | export type FooUnion = boolean | number | FooEnum; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | foo: FooUnion; |
| 12 | - [property: string]: unknown | FooUnion; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | export type FooUnion = boolean | number | FooEnum; |
Test case
2 generated files · +4 −4test/inputs/schema/mutually-recursive.schema
Mschema-flowdefault / TopLevel.js+2 −2
| @@ -13,12 +13,12 @@ export type Foo = TopLevel[] | TopLevel; | ||
| 13 | 13 | |
| 14 | 14 | export type Bar = { |
| 15 | 15 | foo: Foo; |
| 16 | - [property: string]: mixed | Foo; | |
| 16 | + [property: string]: mixed; | |
| 17 | 17 | }; |
| 18 | 18 | |
| 19 | 19 | export type TopLevel = { |
| 20 | 20 | bar?: Bar; |
| 21 | - [property: string]: mixed | Bar; | |
| 21 | + [property: string]: mixed; | |
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+2 −2
| @@ -11,12 +11,12 @@ export type Foo = TopLevel[] | TopLevel; | ||
| 11 | 11 | |
| 12 | 12 | export interface Bar { |
| 13 | 13 | foo: Foo; |
| 14 | - [property: string]: unknown | Foo; | |
| 14 | + [property: string]: unknown; | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | export interface TopLevel { |
| 18 | 18 | bar?: Bar; |
| 19 | - [property: string]: unknown | Bar; | |
| 19 | + [property: string]: unknown; | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/nested-intersection-union.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -18,7 +18,7 @@ export type Item = { | ||
| 18 | 18 | id?: string; |
| 19 | 19 | output?: string; |
| 20 | 20 | summary?: string; |
| 21 | - [property: string]: mixed | string | string | string | string; | |
| 21 | + [property: string]: mixed; | |
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -16,7 +16,7 @@ export interface Item { | ||
| 16 | 16 | id?: string; |
| 17 | 17 | output?: string; |
| 18 | 18 | summary?: string; |
| 19 | - [property: string]: unknown | string | string | string | string; | |
| 19 | + [property: string]: unknown; | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/non-standard-ref.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -13,7 +13,7 @@ export type TopLevel = { | ||
| 13 | 13 | bar: number; |
| 14 | 14 | foo: number; |
| 15 | 15 | quux: boolean; |
| 16 | - [property: string]: mixed | number | number | boolean; | |
| 16 | + [property: string]: mixed; | |
| 17 | 17 | }; |
| 18 | 18 | |
| 19 | 19 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -11,7 +11,7 @@ export interface TopLevel { | ||
| 11 | 11 | bar: number; |
| 12 | 12 | foo: number; |
| 13 | 13 | quux: boolean; |
| 14 | - [property: string]: unknown | number | number | boolean; | |
| 14 | + [property: string]: unknown; | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/nullable-optional-one-of.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | b?: null | string; |
| 14 | 14 | kind: Kind; |
| 15 | - [property: string]: mixed | null | string | Kind; | |
| 15 | + [property: string]: mixed; | |
| 16 | 16 | }; |
| 17 | 17 | |
| 18 | 18 | export type Kind = |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | b?: null | string; |
| 12 | 12 | kind: Kind; |
| 13 | - [property: string]: unknown | null | string | Kind; | |
| 13 | + [property: string]: unknown; | |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | export type Kind = "one" | "two"; |
Test case
2 generated files · +2 −2test/inputs/schema/object-type-required.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -13,7 +13,7 @@ export type TopLevel = { | ||
| 13 | 13 | empty: Empty; |
| 14 | 14 | foo: string; |
| 15 | 15 | bar?: string; |
| 16 | - [property: string]: mixed | Empty | string | string; | |
| 16 | + [property: string]: mixed; | |
| 17 | 17 | }; |
| 18 | 18 | |
| 19 | 19 | export type Empty = { |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -11,7 +11,7 @@ export interface TopLevel { | ||
| 11 | 11 | empty: object; |
| 12 | 12 | foo: string; |
| 13 | 13 | bar?: string; |
| 14 | - [property: string]: unknown | object | string | string; | |
| 14 | + [property: string]: unknown; | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/optional-constraints.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -15,7 +15,7 @@ export type TopLevel = { | ||
| 15 | 15 | optPattern?: string; |
| 16 | 16 | optString?: string; |
| 17 | 17 | reqZeroMin: number; |
| 18 | - [property: string]: mixed | number | number | string | string | number; | |
| 18 | + [property: string]: mixed; | |
| 19 | 19 | }; |
| 20 | 20 | |
| 21 | 21 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -13,7 +13,7 @@ export interface TopLevel { | ||
| 13 | 13 | optPattern?: string; |
| 14 | 14 | optString?: string; |
| 15 | 15 | reqZeroMin: number; |
| 16 | - [property: string]: unknown | number | number | string | string | number; | |
| 16 | + [property: string]: unknown; | |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/pattern.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -13,7 +13,7 @@ export type TopLevel = { | ||
| 13 | 13 | pattern1: string; |
| 14 | 14 | pattern2: string; |
| 15 | 15 | union: string; |
| 16 | - [property: string]: mixed | string | string | string; | |
| 16 | + [property: string]: mixed; | |
| 17 | 17 | }; |
| 18 | 18 | |
| 19 | 19 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -11,7 +11,7 @@ export interface TopLevel { | ||
| 11 | 11 | pattern1: string; |
| 12 | 12 | pattern2: string; |
| 13 | 13 | union: string; |
| 14 | - [property: string]: unknown | string | string | string; | |
| 14 | + [property: string]: unknown; | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Test case
2 generated files · +4 −4test/inputs/schema/postman-collection.schema
Mschema-flowdefault / TopLevel.js+2 −2
| @@ -16,12 +16,12 @@ export type TopLevel = { | ||
| 16 | 16 | item?: TopLevel[]; |
| 17 | 17 | name?: string; |
| 18 | 18 | response?: Response[]; |
| 19 | - [property: string]: mixed | TopLevel[] | string | Response[]; | |
| 19 | + [property: string]: mixed; | |
| 20 | 20 | }; |
| 21 | 21 | |
| 22 | 22 | export type Response = { |
| 23 | 23 | body?: string; |
| 24 | - [property: string]: mixed | string; | |
| 24 | + [property: string]: mixed; | |
| 25 | 25 | }; |
| 26 | 26 | |
| 27 | 27 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+2 −2
| @@ -14,12 +14,12 @@ export interface TopLevel { | ||
| 14 | 14 | item?: TopLevel[]; |
| 15 | 15 | name?: string; |
| 16 | 16 | response?: Response[]; |
| 17 | - [property: string]: unknown | TopLevel[] | string | Response[]; | |
| 17 | + [property: string]: unknown; | |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | export interface Response { |
| 21 | 21 | body?: string; |
| 22 | - [property: string]: unknown | string; | |
| 22 | + [property: string]: unknown; | |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/prefix-items.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | open: Open[]; |
| 14 | 14 | tuple: Open[]; |
| 15 | - [property: string]: mixed | Open[] | Open[]; | |
| 15 | + [property: string]: mixed; | |
| 16 | 16 | }; |
| 17 | 17 | |
| 18 | 18 | export type Open = boolean | number; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | open: Open[]; |
| 12 | 12 | tuple: Open[]; |
| 13 | - [property: string]: unknown | Open[] | Open[]; | |
| 13 | + [property: string]: unknown; | |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | export type Open = boolean | number; |
Test case
2 generated files · +4 −4test/inputs/schema/recursive-union-flattening.schema
Mschema-flowdefault / TopLevel.js+2 −2
| @@ -15,12 +15,12 @@ export type TopLevelElement = mixed[] | boolean | number | null | TopLevelObject | ||
| 15 | 15 | |
| 16 | 16 | export type TopLevelObject = { |
| 17 | 17 | x?: X; |
| 18 | - [property: string]: mixed | X; | |
| 18 | + [property: string]: mixed; | |
| 19 | 19 | }; |
| 20 | 20 | |
| 21 | 21 | export type XObject = { |
| 22 | 22 | x?: X; |
| 23 | - [property: string]: mixed | X; | |
| 23 | + [property: string]: mixed; | |
| 24 | 24 | }; |
| 25 | 25 | |
| 26 | 26 | export type XElement = mixed[] | boolean | number | null | XObject | string; |
Mschema-typescriptdefault / TopLevel.ts+2 −2
| @@ -13,12 +13,12 @@ export type TopLevelElement = unknown[] | boolean | number | null | TopLevelObje | ||
| 13 | 13 | |
| 14 | 14 | export interface TopLevelObject { |
| 15 | 15 | x?: X; |
| 16 | - [property: string]: unknown | X; | |
| 16 | + [property: string]: unknown; | |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | export interface XObject { |
| 20 | 20 | x?: X; |
| 21 | - [property: string]: unknown | X; | |
| 21 | + [property: string]: unknown; | |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | export type XElement = unknown[] | boolean | number | null | XObject | string; |
Test case
2 generated files · +2 −2test/inputs/schema/ref-id-files.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | foo: number; |
| 14 | - [property: string]: mixed | number; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | foo: number; |
| 12 | - [property: string]: unknown | number; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/ref-remote.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -14,7 +14,7 @@ | ||
| 14 | 14 | */ |
| 15 | 15 | export type TopLevel = { |
| 16 | 16 | next?: TopLevel; |
| 17 | - [property: string]: mixed | TopLevel; | |
| 17 | + [property: string]: mixed; | |
| 18 | 18 | }; |
| 19 | 19 | |
| 20 | 20 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ |
| 13 | 13 | export interface TopLevel { |
| 14 | 14 | next?: TopLevel; |
| 15 | - [property: string]: unknown | TopLevel; | |
| 15 | + [property: string]: unknown; | |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | // Converts JSON strings to/from your types |
Test case
2 generated files · +28 −28test/inputs/schema/renaming-bug.schema
Mschema-flowdefault / TopLevel.js+14 −14
| @@ -13,60 +13,60 @@ export type TopLevel = { | ||
| 13 | 13 | version?: string; |
| 14 | 14 | fruits?: Fruit[]; |
| 15 | 15 | vehicles?: Vehicle[]; |
| 16 | - [property: string]: mixed | string | Fruit[] | Vehicle[]; | |
| 16 | + [property: string]: mixed; | |
| 17 | 17 | }; |
| 18 | 18 | |
| 19 | 19 | export type Fruit = { |
| 20 | 20 | apple?: boolean; |
| 21 | 21 | berries?: Berry[]; |
| 22 | 22 | orange?: boolean; |
| 23 | - [property: string]: mixed | boolean | Berry[] | boolean; | |
| 23 | + [property: string]: mixed; | |
| 24 | 24 | }; |
| 25 | 25 | |
| 26 | 26 | export type Berry = { |
| 27 | 27 | color?: Color; |
| 28 | 28 | name?: string; |
| 29 | 29 | shapes?: Shape[]; |
| 30 | - [property: string]: mixed | Color | string | Shape[]; | |
| 30 | + [property: string]: mixed; | |
| 31 | 31 | }; |
| 32 | 32 | |
| 33 | 33 | export type Color = { |
| 34 | 34 | rgb?: number; |
| 35 | - [property: string]: mixed | number; | |
| 35 | + [property: string]: mixed; | |
| 36 | 36 | }; |
| 37 | 37 | |
| 38 | 38 | export type Shape = { |
| 39 | 39 | geometry?: Geometry; |
| 40 | 40 | history?: History; |
| 41 | - [property: string]: mixed | Geometry | History; | |
| 41 | + [property: string]: mixed; | |
| 42 | 42 | }; |
| 43 | 43 | |
| 44 | 44 | export type Geometry = { |
| 45 | 45 | rectShape?: RectShape; |
| 46 | 46 | circularShape?: CircularShape[]; |
| 47 | - [property: string]: mixed | RectShape | CircularShape[]; | |
| 47 | + [property: string]: mixed; | |
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | 50 | export type CircularShape = { |
| 51 | 51 | shapeName?: string; |
| 52 | - [property: string]: mixed | string; | |
| 52 | + [property: string]: mixed; | |
| 53 | 53 | }; |
| 54 | 54 | |
| 55 | 55 | export type RectShape = { |
| 56 | 56 | parts?: Part[]; |
| 57 | - [property: string]: mixed | Part[]; | |
| 57 | + [property: string]: mixed; | |
| 58 | 58 | }; |
| 59 | 59 | |
| 60 | 60 | export type Part = { |
| 61 | 61 | depth?: string; |
| 62 | 62 | length?: string; |
| 63 | 63 | width?: string; |
| 64 | - [property: string]: mixed | string | string | string; | |
| 64 | + [property: string]: mixed; | |
| 65 | 65 | }; |
| 66 | 66 | |
| 67 | 67 | export type History = { |
| 68 | 68 | class?: string; |
| 69 | - [property: string]: mixed | string; | |
| 69 | + [property: string]: mixed; | |
| 70 | 70 | }; |
| 71 | 71 | |
| 72 | 72 | export type Vehicle = { |
| @@ -76,25 +76,25 @@ export type Vehicle = { | ||
| 76 | 76 | subModule?: boolean; |
| 77 | 77 | type?: VehicleType; |
| 78 | 78 | year?: string; |
| 79 | - [property: string]: mixed | string | string | Speed | boolean | VehicleType | string; | |
| 79 | + [property: string]: mixed; | |
| 80 | 80 | }; |
| 81 | 81 | |
| 82 | 82 | export type Speed = { |
| 83 | 83 | velocity?: Limit; |
| 84 | - [property: string]: mixed | Limit; | |
| 84 | + [property: string]: mixed; | |
| 85 | 85 | }; |
| 86 | 86 | |
| 87 | 87 | export type Limit = { |
| 88 | 88 | maximum?: number; |
| 89 | 89 | minimum?: number; |
| 90 | - [property: string]: mixed | number | number; | |
| 90 | + [property: string]: mixed; | |
| 91 | 91 | }; |
| 92 | 92 | |
| 93 | 93 | export type VehicleType = { |
| 94 | 94 | name?: Name; |
| 95 | 95 | width?: Axis; |
| 96 | 96 | length?: Axis; |
| 97 | - [property: string]: mixed | Name | Axis | Axis; | |
| 97 | + [property: string]: mixed; | |
| 98 | 98 | }; |
| 99 | 99 | |
| 100 | 100 | export type Axis = |
Mschema-typescriptdefault / TopLevel.ts+14 −14
| @@ -11,60 +11,60 @@ export interface TopLevel { | ||
| 11 | 11 | version?: string; |
| 12 | 12 | fruits?: Fruit[]; |
| 13 | 13 | vehicles?: Vehicle[]; |
| 14 | - [property: string]: unknown | string | Fruit[] | Vehicle[]; | |
| 14 | + [property: string]: unknown; | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | export interface Fruit { |
| 18 | 18 | apple?: boolean; |
| 19 | 19 | berries?: Berry[]; |
| 20 | 20 | orange?: boolean; |
| 21 | - [property: string]: unknown | boolean | Berry[] | boolean; | |
| 21 | + [property: string]: unknown; | |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | export interface Berry { |
| 25 | 25 | color?: Color; |
| 26 | 26 | name?: string; |
| 27 | 27 | shapes?: Shape[]; |
| 28 | - [property: string]: unknown | Color | string | Shape[]; | |
| 28 | + [property: string]: unknown; | |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | export interface Color { |
| 32 | 32 | rgb?: number; |
| 33 | - [property: string]: unknown | number; | |
| 33 | + [property: string]: unknown; | |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | export interface Shape { |
| 37 | 37 | geometry?: Geometry; |
| 38 | 38 | history?: History; |
| 39 | - [property: string]: unknown | Geometry | History; | |
| 39 | + [property: string]: unknown; | |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | export interface Geometry { |
| 43 | 43 | rectShape?: RectShape; |
| 44 | 44 | circularShape?: CircularShape[]; |
| 45 | - [property: string]: unknown | RectShape | CircularShape[]; | |
| 45 | + [property: string]: unknown; | |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | export interface CircularShape { |
| 49 | 49 | shapeName?: string; |
| 50 | - [property: string]: unknown | string; | |
| 50 | + [property: string]: unknown; | |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | export interface RectShape { |
| 54 | 54 | parts?: Part[]; |
| 55 | - [property: string]: unknown | Part[]; | |
| 55 | + [property: string]: unknown; | |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | export interface Part { |
| 59 | 59 | depth?: string; |
| 60 | 60 | length?: string; |
| 61 | 61 | width?: string; |
| 62 | - [property: string]: unknown | string | string | string; | |
| 62 | + [property: string]: unknown; | |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | export interface History { |
| 66 | 66 | class?: string; |
| 67 | - [property: string]: unknown | string; | |
| 67 | + [property: string]: unknown; | |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | export interface Vehicle { |
| @@ -74,25 +74,25 @@ export interface Vehicle { | ||
| 74 | 74 | subModule?: boolean; |
| 75 | 75 | type?: VehicleType; |
| 76 | 76 | year?: string; |
| 77 | - [property: string]: unknown | string | string | Speed | boolean | VehicleType | string; | |
| 77 | + [property: string]: unknown; | |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | export interface Speed { |
| 81 | 81 | velocity?: Limit; |
| 82 | - [property: string]: unknown | Limit; | |
| 82 | + [property: string]: unknown; | |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | export interface Limit { |
| 86 | 86 | maximum?: number; |
| 87 | 87 | minimum?: number; |
| 88 | - [property: string]: unknown | number | number; | |
| 88 | + [property: string]: unknown; | |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | export interface VehicleType { |
| 92 | 92 | name?: Name; |
| 93 | 93 | width?: Axis; |
| 94 | 94 | length?: Axis; |
| 95 | - [property: string]: unknown | Name | Axis | Axis; | |
| 95 | + [property: string]: unknown; | |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | export type Axis = "X" | "Y" | "Z" | "YZ" | "ZX" | "XY"; |
Test case
2 generated files · +2 −2test/inputs/schema/required-draft3.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | longitude: number; |
| 14 | - [property: string]: mixed | number; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | longitude: number; |
| 12 | - [property: string]: unknown | number; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/required-non-properties.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | foo: number; |
| 14 | 14 | bar: mixed; |
| 15 | - [property: string]: mixed | number | mixed; | |
| 15 | + [property: string]: mixed; | |
| 16 | 16 | }; |
| 17 | 17 | |
| 18 | 18 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | foo: number; |
| 12 | 12 | bar: unknown; |
| 13 | - [property: string]: unknown | number | unknown; | |
| 13 | + [property: string]: unknown; | |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/required.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | longitude: number; |
| 14 | - [property: string]: mixed | number; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | longitude: number; |
| 12 | - [property: string]: unknown | number; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | // Converts JSON strings to/from your types |
Test case
2 generated files · +4 −4test/inputs/schema/rust-cycle-breaker-union.schema
Mschema-flowdefault / TopLevel.js+2 −2
| @@ -12,13 +12,13 @@ | ||
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | next?: Next; |
| 14 | 14 | value: string; |
| 15 | - [property: string]: mixed | Next | string; | |
| 15 | + [property: string]: mixed; | |
| 16 | 16 | }; |
| 17 | 17 | |
| 18 | 18 | export type Node = { |
| 19 | 19 | next?: Next; |
| 20 | 20 | value: string; |
| 21 | - [property: string]: mixed | Next | string; | |
| 21 | + [property: string]: mixed; | |
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | export type Next = null | Node | string; |
Mschema-typescriptdefault / TopLevel.ts+2 −2
| @@ -10,13 +10,13 @@ | ||
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | next?: Next; |
| 12 | 12 | value: string; |
| 13 | - [property: string]: unknown | Next | string; | |
| 13 | + [property: string]: unknown; | |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | export interface Node { |
| 17 | 17 | next?: Next; |
| 18 | 18 | value: string; |
| 19 | - [property: string]: unknown | Next | string; | |
| 19 | + [property: string]: unknown; | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | export type Next = null | Node | string; |
Test case
2 generated files · +2 −2test/inputs/schema/schema-constraints.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | minMaxLength: string; |
| 14 | 14 | percent: number; |
| 15 | - [property: string]: mixed | string | number; | |
| 15 | + [property: string]: mixed; | |
| 16 | 16 | }; |
| 17 | 17 | |
| 18 | 18 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | minMaxLength: string; |
| 12 | 12 | percent: number; |
| 13 | - [property: string]: unknown | string | number; | |
| 13 | + [property: string]: unknown; | |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/simple-ref.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -14,7 +14,7 @@ | ||
| 14 | 14 | */ |
| 15 | 15 | export type TopLevel = { |
| 16 | 16 | next?: TopLevel; |
| 17 | - [property: string]: mixed | TopLevel; | |
| 17 | + [property: string]: mixed; | |
| 18 | 18 | }; |
| 19 | 19 | |
| 20 | 20 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ |
| 13 | 13 | export interface TopLevel { |
| 14 | 14 | next?: TopLevel; |
| 15 | - [property: string]: unknown | TopLevel; | |
| 15 | + [property: string]: unknown; | |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/strict-optional.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | foo: number | null; |
| 14 | - [property: string]: mixed | number | null; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | foo: number | null; |
| 12 | - [property: string]: unknown | number | null; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/top-level-array.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -14,7 +14,7 @@ export type TopLevel = TextClassificationOutputElement[]; | ||
| 14 | 14 | export type TextClassificationOutputElement = { |
| 15 | 15 | label: string; |
| 16 | 16 | score: number; |
| 17 | - [property: string]: mixed | string | number; | |
| 17 | + [property: string]: mixed; | |
| 18 | 18 | }; |
| 19 | 19 | |
| 20 | 20 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -12,7 +12,7 @@ export type TopLevel = TextClassificationOutputElement[]; | ||
| 12 | 12 | export interface TextClassificationOutputElement { |
| 13 | 13 | label: string; |
| 14 | 14 | score: number; |
| 15 | - [property: string]: unknown | string | number; | |
| 15 | + [property: string]: unknown; | |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/tuple.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | tuple: Tuple[]; |
| 14 | - [property: string]: mixed | Tuple[]; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | export type Tuple = boolean | number; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | tuple: Tuple[]; |
| 12 | - [property: string]: unknown | Tuple[]; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | export type Tuple = boolean | number; |
Test case
2 generated files · +6 −6test/inputs/schema/unevaluated-properties.schema
Mschema-flowdefault / TopLevel.js+3 −3
| @@ -11,14 +11,14 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | config?: Config; |
| 14 | - [property: string]: mixed | Config; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | export type Config = { |
| 18 | 18 | closed?: Closed; |
| 19 | 19 | name?: string; |
| 20 | 20 | settings?: { [key: string]: Item[] }; |
| 21 | - [property: string]: mixed | Closed | string | { [key: string]: Item[] }; | |
| 21 | + [property: string]: mixed; | |
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | 24 | export type Closed = mixed[] | boolean | ClosedClass | number | number | null | string; |
| @@ -29,7 +29,7 @@ export type ClosedClass = { | ||
| 29 | 29 | export type Item = { |
| 30 | 30 | key: string; |
| 31 | 31 | value: string; |
| 32 | - [property: string]: mixed | string | string; | |
| 32 | + [property: string]: mixed; | |
| 33 | 33 | }; |
| 34 | 34 | |
| 35 | 35 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+3 −3
| @@ -9,14 +9,14 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | config?: Config; |
| 12 | - [property: string]: unknown | Config; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | export interface Config { |
| 16 | 16 | closed?: Closed; |
| 17 | 17 | name?: string; |
| 18 | 18 | settings?: { [key: string]: Item[] }; |
| 19 | - [property: string]: unknown | Closed | string | { [key: string]: Item[] }; | |
| 19 | + [property: string]: unknown; | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | export type Closed = unknown[] | boolean | object | number | number | null | string; |
| @@ -24,7 +24,7 @@ export type Closed = unknown[] | boolean | object | number | number | null | str | ||
| 24 | 24 | export interface Item { |
| 25 | 25 | key: string; |
| 26 | 26 | value: string; |
| 27 | - [property: string]: unknown | string | string; | |
| 27 | + [property: string]: unknown; | |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/union-int-double.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | export type TopLevel = { |
| 13 | 13 | value: Value; |
| 14 | - [property: string]: mixed | Value; | |
| 14 | + [property: string]: mixed; | |
| 15 | 15 | }; |
| 16 | 16 | |
| 17 | 17 | export type Value = number | string; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | |
| 10 | 10 | export interface TopLevel { |
| 11 | 11 | value: Value; |
| 12 | - [property: string]: unknown | Value; | |
| 12 | + [property: string]: unknown; | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | export type Value = number | string; |
Test case
2 generated files · +2 −2test/inputs/schema/union.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -15,7 +15,7 @@ export type TopLevelElement = { | ||
| 15 | 15 | one?: number; |
| 16 | 16 | two: boolean; |
| 17 | 17 | three?: number; |
| 18 | - [property: string]: mixed | number | boolean | number; | |
| 18 | + [property: string]: mixed; | |
| 19 | 19 | }; |
| 20 | 20 | |
| 21 | 21 | // Converts JSON strings to/from your types |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -13,7 +13,7 @@ export interface TopLevelElement { | ||
| 13 | 13 | one?: number; |
| 14 | 14 | two: boolean; |
| 15 | 15 | three?: number; |
| 16 | - [property: string]: unknown | number | boolean | number; | |
| 16 | + [property: string]: unknown; | |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | // Converts JSON strings to/from your types |
Test case
2 generated files · +2 −2test/inputs/schema/uuid.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -16,7 +16,7 @@ export type TopLevel = { | ||
| 16 | 16 | one: string; |
| 17 | 17 | optional?: string; |
| 18 | 18 | unionWithEnum: UnionWithEnumUnion; |
| 19 | - [property: string]: mixed | (null | string)[] | string[] | null | string | string | string | UnionWithEnumUnion; | |
| 19 | + [property: string]: mixed; | |
| 20 | 20 | }; |
| 21 | 21 | |
| 22 | 22 | export type UnionWithEnumUnion = UnionWithEnumEnum | string; |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -14,7 +14,7 @@ export interface TopLevel { | ||
| 14 | 14 | one: string; |
| 15 | 15 | optional?: string; |
| 16 | 16 | unionWithEnum: UnionWithEnumUnion; |
| 17 | - [property: string]: unknown | (null | string)[] | string[] | null | string | string | string | UnionWithEnumUnion; | |
| 17 | + [property: string]: unknown; | |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | export type UnionWithEnumUnion = UnionWithEnumEnum | string; |
Test case
2 generated files · +2 −2test/inputs/schema/vega-lite.schema
Mschema-flowdefault / TopLevel.js+1 −1
| @@ -1800,7 +1800,7 @@ export type RangeConfig = { | ||
| 1800 | 1800 | * Default range palette for the `shape` channel. |
| 1801 | 1801 | */ |
| 1802 | 1802 | symbol?: string[]; |
| 1803 | - [property: string]: RangeConfigValue | Category | Category | Category | Category | Category | string[]; | |
| 1803 | + [property: string]: RangeConfigValue | Category | string[] | void; | |
| 1804 | 1804 | }; |
| 1805 | 1805 | |
| 1806 | 1806 | /** |
Mschema-typescriptdefault / TopLevel.ts+1 −1
| @@ -1706,7 +1706,7 @@ export interface RangeConfig { | ||
| 1706 | 1706 | * Default range palette for the `shape` channel. |
| 1707 | 1707 | */ |
| 1708 | 1708 | symbol?: string[]; |
| 1709 | - [property: string]: RangeConfigValue | Category | Category | Category | Category | Category | string[]; | |
| 1709 | + [property: string]: RangeConfigValue | Category | string[] | undefined; | |
| 1710 | 1710 | } |
| 1711 | 1711 | |
| 1712 | 1712 | /** |
No generated files match these filters.