Skip to content

Commit 32a133d

Browse files
committed
Update genType snapshot tests.
`make test-gentype`
1 parent 70cb393 commit 32a133d

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

jscomp/gentype_tests/typescript-react-example/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/gentype_tests/typescript-react-example/src/JSXV4.gen.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ export const make: unknown = makeTypeChecked as React.ComponentType<{
2626
const JSXV4BS = require('./JSXV4.bs');
2727

2828
// tslint:disable-next-line:interface-over-type-literal
29-
export type CompV4_props<x,y> = {
30-
readonly key?: string;
31-
readonly x: x;
32-
readonly y: y
33-
};
29+
export type CompV4_props<x,y> = { readonly x: x; readonly y: y };
3430

3531
// tslint:disable-next-line:interface-over-type-literal
3632
export type person = { readonly name: string; readonly age: number };
@@ -40,7 +36,6 @@ export type renderMe<a> = React.ComponentType<{ readonly randomString: string; r
4036

4137
// tslint:disable-next-line:interface-over-type-literal
4238
export type props<actions,person,children,renderMe> = {
43-
readonly key?: string;
4439
readonly actions?: actions;
4540
readonly person: person;
4641
readonly children: children;

0 commit comments

Comments
 (0)