Skip to content

Commit a4308dc

Browse files
committed
Update examples to rescript 9.1.1.
1 parent ddcfb95 commit a4308dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+134
-296
lines changed

examples/deadcode/package-lock.json

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

examples/deadcode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"analyze": "npm run dce && npm run exception && npm run noalloc"
1313
},
1414
"devDependencies": {
15-
"bs-platform": "8.4.2",
15+
"rescript": "9.1.1",
1616
"@glennsl/bs-json": "^3.0.0",
1717
"gentype": "^3.27.0",
1818
"react": "^16.13.1",

examples/deadcode/src/BucklescriptAnnotations.bs.js

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

examples/deadcode/src/BucklescriptAnnotations.gen.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,7 @@
33

44

55
// tslint:disable-next-line:interface-over-type-literal
6-
export type someMutableFields = {
7-
mutable0: string;
8-
readonly immutable: number;
9-
mutable1: string;
10-
mutable2: string
11-
};
6+
export type someMutableFields = unknown;
127

138
// tslint:disable-next-line:interface-over-type-literal
14-
export type someMethods = {
15-
readonly send: (_1:string) => void;
16-
readonly on: (_1:string, _2:((_1:number) => void)) => void;
17-
readonly threeargs: (_1:number, _2:string, _3:number) => string;
18-
readonly twoArgs: (_1:number, _2:string) => number
19-
};
9+
export type someMethods = unknown;

examples/deadcode/src/BucklescriptAnnotations.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type someMethods = {
2020
"twoArgs": (. int, string) => int,
2121
}
2222

23-
let foo = (x: someMethods) => x["threeargs"](3, "a", 4)
23+
// let foo = (x: someMethods) => x["threeargs"](3, "a", 4)
2424

2525
let bar = (x: someMethods) => {
2626
let f = x["twoArgs"]

examples/deadcode/src/ComponentAsProp.bs.js

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

examples/deadcode/src/CreateErrorHandler1.bs.js

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

examples/deadcode/src/DeadExn.bs.js

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

examples/deadcode/src/DeadMl.bs.js

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

examples/deadcode/src/DeadTest.bs.js

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

0 commit comments

Comments
 (0)