Skip to content

Commit e079567

Browse files
authored
Merge pull request #34 from banacorn/main
[ Fix ] `Os.arch` should be a function
2 parents 47ff6ae + 8b520f3 commit e079567

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

.yarnrc

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@dusty-phillips/rescript-zora": "^4.0.0",
1919
"changie": "^1.18.0",
2020
"onchange": "^7.1.0",
21-
"pta": "^1.2.0",
21+
"pta": "1.2.0",
2222
"rescript": "^11.1.0",
2323
"zora": "^5.2.0"
2424
},

src/Os.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type cpu = private {
1111
times: cpuTimes,
1212
}
1313
@module("node:os") @val external eol: string = "EOL"
14-
@module("node:os") @val external arch: string = "arch"
14+
@module("node:os") @val external arch: unit => string = "arch"
1515
@module("node:os") @val external cpus: unit => array<cpu> = "cpus"
1616
@module("node:os") @val external endianness: unit => string = "endianness"
1717
@module("node:os") @val external freemem: unit => int = "freemem"

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ __metadata:
932932
languageName: node
933933
linkType: hard
934934

935-
"pta@npm:^1.2.0":
935+
"pta@npm:1.2.0, pta@npm:^1.2.0":
936936
version: 1.2.0
937937
resolution: "pta@npm:1.2.0"
938938
dependencies:
@@ -970,7 +970,7 @@ __metadata:
970970
"@dusty-phillips/rescript-zora": "npm:^4.0.0"
971971
changie: "npm:^1.18.0"
972972
onchange: "npm:^7.1.0"
973-
pta: "npm:^1.2.0"
973+
pta: "npm:1.2.0"
974974
rescript: "npm:^11.1.0"
975975
zora: "npm:^5.2.0"
976976
languageName: unknown

0 commit comments

Comments
 (0)