|
2 | 2 | /* eslint-disable import/first */
|
3 | 3 |
|
4 | 4 |
|
| 5 | +import {someFunWithNullThenOptionalArgs as someFunWithNullThenOptionalArgsNotChecked} from './CoreTS'; |
| 6 | + |
| 7 | +import {someFunWithNullUndefinedArg as someFunWithNullUndefinedArgNotChecked} from './CoreTS'; |
| 8 | + |
5 | 9 | const $$toJS552311971: { [key: string]: any } = {"0": "A"};
|
6 | 10 |
|
7 | 11 | const $$toRE552311971: { [key: string]: any } = {"A": 0};
|
8 | 12 |
|
9 |
| -// @ts-ignore: Implicit any on import |
10 |
| -import * as CoreBS__Es6Import from './Core.bs'; |
11 |
| -const CoreBS: any = CoreBS__Es6Import; |
| 13 | +// In case of type error, check the type of 'someFunWithNullThenOptionalArgs' in 'Core.res' and './CoreTS'. |
| 14 | +export const someFunWithNullThenOptionalArgsTypeChecked: (_1:(null | string), _2:(undefined | string)) => string = someFunWithNullThenOptionalArgsNotChecked; |
| 15 | + |
| 16 | +// Export 'someFunWithNullThenOptionalArgs' early to allow circular import from the '.bs.js' file. |
| 17 | +export const someFunWithNullThenOptionalArgs: unknown = someFunWithNullThenOptionalArgsTypeChecked as (_1:(null | string), _2:(undefined | string)) => string; |
| 18 | + |
| 19 | +// In case of type error, check the type of 'someFunWithNullUndefinedArg' in 'Core.res' and './CoreTS'. |
| 20 | +export const someFunWithNullUndefinedArgTypeChecked: (_1:(null | undefined | string), _2:number) => string = someFunWithNullUndefinedArgNotChecked; |
| 21 | + |
| 22 | +// Export 'someFunWithNullUndefinedArg' early to allow circular import from the '.bs.js' file. |
| 23 | +export const someFunWithNullUndefinedArg: unknown = someFunWithNullUndefinedArgTypeChecked as (_1:(null | undefined | string), _2:number) => string; |
| 24 | + |
| 25 | +// tslint:disable-next-line:no-var-requires |
| 26 | +const CoreBS = require('./Core.bs'); |
12 | 27 |
|
13 | 28 | // tslint:disable-next-line:interface-over-type-literal
|
14 | 29 | export type variant = "A" | { tag: "B"; value: string };
|
|
0 commit comments