Skip to content

Commit 108a099

Browse files
Update snapshot files
1 parent 34ec652 commit 108a099

File tree

2 files changed

+58
-33
lines changed

2 files changed

+58
-33
lines changed

test/__snapshots__/test/test.ts.md

Lines changed: 58 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ Generated by [AVA](https://ava.li).
105105
106106
export type PositiveInteger = number;␊
107107
export type PositiveIntegerDefault0 = PositiveInteger;␊
108-
export type SchemaArray = [HttpJsonSchemaOrgDraft04Schema, ...(HttpJsonSchemaOrgDraft04Schema)[]];␊
109-
export type StringArray = [string, ...(string)[]];␊
108+
export type SchemaArray = [HttpJsonSchemaOrgDraft04Schema, ...HttpJsonSchemaOrgDraft04Schema[]];␊
109+
export type StringArray = [string, ...string[]];␊
110110
export type SimpleTypes = "array" | "boolean" | "integer" | "null" | "number" | "object" | "string";␊
111111
112112
/**␊
@@ -147,8 +147,8 @@ Generated by [AVA](https://ava.li).
147147
dependencies?: {␊
148148
[k: string]: HttpJsonSchemaOrgDraft04Schema | StringArray;␊
149149
};␊
150-
enum?: [any, ...(any)[]];␊
151-
type?: SimpleTypes | [SimpleTypes, ...(SimpleTypes)[]];␊
150+
enum?: [any, ...any[]];␊
151+
type?: SimpleTypes | [SimpleTypes, ...SimpleTypes[]];␊
152152
allOf?: SchemaArray;␊
153153
anyOf?: SchemaArray;␊
154154
oneOf?: SchemaArray;␊
@@ -562,7 +562,7 @@ Generated by [AVA](https://ava.li).
562562
}␊
563563
export interface Bar {␊
564564
a?: "a" | "b" | "c";␊
565-
bam?: ("wam")[];␊
565+
bam?: "wam"[];␊
566566
[k: string]: any;␊
567567
}␊
568568
export interface Baz {␊
@@ -611,16 +611,16 @@ Generated by [AVA](https://ava.li).
611611
612612
export interface ArrayAdditionalItems {␊
613613
namedEums?: {␊
614-
additionalItemsAny?: [] | [NamedEnum2, ...(any)[]];␊
615-
additionalItems?: [] | [NamedEnum21, ...(NamedEnum22)[]];␊
614+
additionalItemsAny?: [] | [NamedEnum2, ...any[]];␊
615+
additionalItems?: [] | [NamedEnum21, ...NamedEnum22[]];␊
616616
};␊
617617
unnamedEmums?: {␊
618-
additionalItemsAny?: [] | [(1 | 2 | 3), ...(any)[]];␊
619-
additionalItems?: [] | [("One" | "Two" | "Three"), ...(4 | 5 | 6)[]];␊
618+
additionalItemsAny?: [] | [1 | 2 | 3, ...any[]];␊
619+
additionalItems?: [] | ["One" | "Two" | "Three", ...(4 | 5 | 6)[]];␊
620620
};␊
621621
namedSchema?: {␊
622-
additionalItemsAny?: [] | [StringSchema1] | [StringSchema1, NumberSchema1, ...(any)[]];␊
623-
additionalItems?: [] | [StringSchema2] | [StringSchema2, NumberSchema2, ...(BooleanSchema1)[]];␊
622+
additionalItemsAny?: [] | [StringSchema1] | [StringSchema1, NumberSchema1, ...any[]];␊
623+
additionalItems?: [] | [StringSchema2] | [StringSchema2, NumberSchema2, ...BooleanSchema1[]];␊
624624
};␊
625625
schema?: {␊
626626
additionalItemsAny?:␊
@@ -640,7 +640,7 @@ Generated by [AVA](https://ava.li).
640640
bar?: number;␊
641641
[k: string]: any;␊
642642
},␊
643-
...(any)[]␊
643+
...any[]␊
644644
];␊
645645
additionalItems?:␊
646646
| []␊
@@ -659,23 +659,23 @@ Generated by [AVA](https://ava.li).
659659
bar?: number;␊
660660
[k: string]: any;␊
661661
},␊
662-
...({␊
662+
...{␊
663663
baz?: boolean;␊
664664
[k: string]: any;␊
665-
})[]␊
665+
}[]␊
666666
];␊
667667
};␊
668668
ofType?: {␊
669-
additonalItemsAny?: [] | [number] | [number, string, ...(any)[]];␊
670-
additonalItems?: [] | [number] | [number, string, ...(boolean)[]];␊
669+
additonalItemsAny?: [] | [number] | [number, string, ...any[]];␊
670+
additonalItems?: [] | [number] | [number, string, ...boolean[]];␊
671671
};␊
672672
refs?: {␊
673-
additionalItemsAny?: [] | [ExampleSchema, ...(any)[]];␊
674-
additionalItems?: [] | [ExampleSchema1, ...(ExampleSchema2)[]];␊
673+
additionalItemsAny?: [] | [ExampleSchema, ...any[]];␊
674+
additionalItems?: [] | [ExampleSchema1, ...ExampleSchema2[]];␊
675675
};␊
676676
defs?: {␊
677-
additionalItemsAny?: [] | [FirstDefinition, ...(any)[]];␊
678-
additionalItems?: [] | [UnrelatedTitle, ...(ThirdDefinition)[]];␊
677+
additionalItemsAny?: [] | [FirstDefinition, ...any[]];␊
678+
additionalItems?: [] | [UnrelatedTitle, ...ThirdDefinition[]];␊
679679
};␊
680680
}␊
681681
export interface StringSchema1 {␊
@@ -777,7 +777,7 @@ Generated by [AVA](https://ava.li).
777777
/**␊
778778
* minItems = 3␊
779779
*/␊
780-
withMinItems?: [string, string, string, ...(string)[]];␊
780+
withMinItems?: [string, string, string, ...string[]];␊
781781
/**␊
782782
* maxItems = 3␊
783783
*/␊
@@ -809,7 +809,7 @@ Generated by [AVA](https://ava.li).
809809
/**␊
810810
* minItems = 3␊
811811
*/␊
812-
withMinItems?: [any, any, any, ...(any)[]];␊
812+
withMinItems?: [any, any, any, ...any[]];␊
813813
/**␊
814814
* maxItems = 3␊
815815
*/␊
@@ -845,7 +845,7 @@ Generated by [AVA](https://ava.li).
845845
/**␊
846846
* minItems = 8␊
847847
*/␊
848-
withMinItemsGreaterThanItemLength?: [1, 2, 3, 4, 5, 6, ...(any)[]];␊
848+
withMinItemsGreaterThanItemLength?: [1, 2, 3, 4, 5, 6, ...any[]];␊
849849
/**␊
850850
* maxItems = 2␊
851851
*/␊
@@ -947,11 +947,11 @@ Generated by [AVA](https://ava.li).
947947
data: any;␊
948948
valid: boolean;␊
949949
},␊
950-
...({␊
950+
...{␊
951951
description: string;␊
952952
data: any;␊
953953
valid: boolean;␊
954-
})[]␊
954+
}[]␊
955955
];␊
956956
}[];␊
957957
`
@@ -1118,7 +1118,8 @@ Generated by [AVA](https://ava.li).
11181118
| {␊
11191119
baz?: number;␊
11201120
[k: string]: any;␊
1121-
})␊
1121+
}␊
1122+
)␊
11221123
| Bar;␊
11231124
}␊
11241125
export interface Foo {␊
@@ -5592,7 +5593,8 @@ Generated by [AVA](https://ava.li).
55925593
| "HPUX"␊
55935594
| "Solaris"␊
55945595
| "NetWare"␊
5595-
| "iSeries");␊
5596+
| "iSeries"␊
5597+
);␊
55965598
export type Subnet = string | null;␊
55975599
export type Address = string | null;␊
55985600
export type Mac = string | null;␊
@@ -5654,7 +5656,8 @@ Generated by [AVA](https://ava.li).
56545656
| "SMTP"␊
56555657
| "SHAREPOINT"␊
56565658
| "VSPHERE"␊
5657-
| "UNSET");␊
5659+
| "UNSET"␊
5660+
);␊
56585661
export type Username1 = string | null;␊
56595662
export type Password3 = string | null;␊
56605663
export type Domain1 = string | null;␊
@@ -5912,7 +5915,8 @@ Generated by [AVA](https://ava.li).
59125915
| GetDate1␊
59135916
| UpdateXmlValues1␊
59145917
| VerifyExchangeDBReseed1␊
5915-
| CalculateFileHash1)[];␊
5918+
| CalculateFileHash1␊
5919+
)[];␊
59165920
export type AgentControl1 = BaseCommand & AgentControl;␊
59175921
export type Machine2 = string | null;␊
59185922
export type Action = Actions;␊
@@ -6250,7 +6254,8 @@ Generated by [AVA](https://ava.li).
62506254
| "DisallowRestore"␊
62516255
| "EnableFailover"␊
62526256
| "DisableFailover"␊
6253-
| "Undefined");␊
6257+
| "Undefined"␊
6258+
);␊
62546259
export type ExpectedDBStatus = DBCopyStatus;␊
62556260
export type DBCopyStatus = (string | null) &␊
62566261
(␊
@@ -6264,7 +6269,8 @@ Generated by [AVA](https://ava.li).
62646269
| "Failed"␊
62656270
| "FailedAndSuspended"␊
62666271
| "ServiceDown"␊
6267-
| "Undefined");␊
6272+
| "Undefined"␊
6273+
);␊
62686274
export type ExpectedDBIndexState = DBContentIndexState;␊
62696275
export type DBContentIndexState = (string | null) &␊
62706276
("Healthy" | "Unknown" | "Crawling" | "Failed" | "Corrupt" | "Suspended" | "Undefined");␊
@@ -6350,7 +6356,8 @@ Generated by [AVA](https://ava.li).
63506356
| "UnregisterVM"␊
63516357
| "Deploy"␊
63526358
| "ConvertToTemplate"␊
6353-
| "ConvertToVM");␊
6359+
| "ConvertToVM"␊
6360+
);␊
63546361
export type Target9 = string | null;␊
63556362
export type Cleanup = boolean | null;␊
63566363
export type ExtraDeployOptions = string | null;␊
@@ -6500,7 +6507,8 @@ Generated by [AVA](https://ava.li).
65006507
| "VSPHERE_VM_FOLDERS"␊
65016508
| "VSPHERE_RESOURCE_POOLS"␊
65026509
| "ALL"␊
6503-
| "ALTERNATE_SAFESET_LOCATION");␊
6510+
| "ALTERNATE_SAFESET_LOCATION"␊
6511+
);␊
65046512
export type Agent8 = string | null;␊
65056513
export type Vault4 = string | null;␊
65066514
export type Name7 = string | null;␊
@@ -9301,6 +9309,23 @@ Generated by [AVA](https://ava.li).
93019309
}␊
93029310
`
93039311

9312+
## strictIndexSignatures.js
9313+
9314+
> Snapshot 1
9315+
9316+
`/* tslint:disable */␊
9317+
/**␊
9318+
* This file was automatically generated by json-schema-to-typescript.␊
9319+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
9320+
* and run json-schema-to-typescript to regenerate this file.␊
9321+
*/␊
9322+
9323+
export interface StrictIndexSignatures {␊
9324+
maybe?: string;␊
9325+
[k: string]: string | undefined;␊
9326+
}␊
9327+
`
9328+
93049329
## subSchema.js
93059330

93069331
> Snapshot 1

test/__snapshots__/test/test.ts.snap

-46 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)