Skip to content

Commit fe18ccf

Browse files
committed
Moar changes
1 parent 29165b8 commit fe18ccf

File tree

15 files changed

+347
-12
lines changed

15 files changed

+347
-12
lines changed

rescript.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"@tests/reanalyze-deadcode",
99
"@tests/incremental-typechecking",
1010
"@tests/reanalyze-termination"
11-
]
11+
],
12+
"jsx": { "version": 4 }
1213
}

tests/analysis_tests/tests-incremental-typechecking/rescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "test-generic-jsx-transform",
2+
"name": "@tests/incremental-typechecking",
33
"sources": [
44
{
55
"dir": "src",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
let x = Js.Json.Array()
2-
// ^com
1+
// let x = Js.Json.Array()
2+
// ^com

tests/analysis_tests/tests-incremental-typechecking/src/ConstructorCompletion__Own.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ module WithVariant = {
22
type t = One({miss: bool}) | Two(bool)
33
}
44

5-
let x = WithVariant.One()
6-
// ^com
5+
// let x = WithVariant.One()
6+
// ^com

tests/analysis_tests/tests-reanalyze/deadcode/rescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"name": "@tests/reanalyze-deadcode",
99
"jsx": { "version": 4 },
10-
"bs-dependencies": ["@rescript/react"],
10+
"bs-dependencies": ["@tests/rescript-react"],
1111
"sources": [
1212
{
1313
"dir": "src",

tests/analysis_tests/tests-reanalyze/deadcode/src/exception/ExportWithRename.res

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/analysis_tests/tests-reanalyze/termination/rescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"suppress": [],
55
"unsuppress": []
66
},
7-
"name": "arnold",
7+
"name": "@tests/reanalyze-termination",
88
"bs-dependencies": [],
99
"sources": [
1010
{

tests/analysis_tests/tests/rescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"bsc-flags": ["-w -33-44-8"],
13-
"bs-dependencies": ["@rescript/react"],
13+
"bs-dependencies": ["@tests/rescript-react"],
1414
"jsx": { "version": 4 },
1515
"suffix": ".res.js",
1616
"editor": {

tests/gentype_tests/typescript-react-example/rescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"name": "@tests/gentype-react-example",
1919
"bsc-flags": [],
2020
"jsx": { "version": 4 },
21-
"bs-dependencies": ["@rescript/react"],
21+
"bs-dependencies": ["@tests/rescript-react"],
2222
"sources": [
2323
{
2424
"dir": "src",
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* TypeScript file generated from NestedTuples.res by genType. */
2+
3+
/* eslint-disable */
4+
/* tslint:disable */
5+
6+
import * as NestedTuplesJS from './NestedTuples.res.js';
7+
8+
export type coord = [number, number, (undefined | number)];
9+
10+
export type coord2 = [number, number, (null | undefined | number)];
11+
12+
export type person = { readonly name: string; readonly age: number };
13+
14+
export type couple = [person, person];
15+
16+
export const testTuple: (param:[number, number]) => number = NestedTuplesJS.testTuple as any;
17+
18+
export const origin: [number, number, (undefined | number)] = NestedTuplesJS.origin as any;
19+
20+
export const computeArea: (param:[number, number, (undefined | number)]) => number = NestedTuplesJS.computeArea as any;
21+
22+
export const computeAreaWithIdent: (param:coord) => number = NestedTuplesJS.computeAreaWithIdent as any;
23+
24+
export const computeAreaNoConverters: (param:[number, number]) => number = NestedTuplesJS.computeAreaNoConverters as any;
25+
26+
export const coord2d: <T1,T2,T3>(x:T1, y:T2) => [T1, T2, (undefined | T3)] = NestedTuplesJS.coord2d as any;
27+
28+
export const getFirstName: (param:couple) => string = NestedTuplesJS.getFirstName as any;
29+
30+
export const marry: (first:person, second:person) => couple = NestedTuplesJS.marry as any;
31+
32+
export const changeSecondAge: (param:couple) => couple = NestedTuplesJS.changeSecondAge as any;

0 commit comments

Comments
 (0)