Skip to content

Commit e1d3d6c

Browse files
committed
Use latest syntax.
1 parent 69e09bc commit e1d3d6c

15 files changed

+236
-208
lines changed

jscomp/gentype_tests/typescript-react-example/src/DynamicallyLoadedComponent.bs.js

Lines changed: 2 additions & 2 deletions
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/ExportWithRename.bs.js

Lines changed: 2 additions & 2 deletions
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/ExportWithRename.gen.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
/* eslint-disable import/first */
33

44

5-
import * as React from 'react';
6-
75
// @ts-ignore: Implicit any on import
86
import * as ExportWithRenameBS__Es6Import from './ExportWithRename.bs';
97
const ExportWithRenameBS: any = ExportWithRenameBS__Es6Import;
108

119
// tslint:disable-next-line:interface-over-type-literal
12-
export type Props = { readonly s: string };
10+
export type props<s> = { readonly key?: string; readonly s: s };
1311

14-
export const ExportWithRename: React.ComponentType<{ readonly s: string }> = ExportWithRenameBS.make;
12+
export const ExportWithRename: (_1:props<string>) => JSX.Element = ExportWithRenameBS.make;

jscomp/gentype_tests/typescript-react-example/src/Hooks.bs.js

Lines changed: 35 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)