Skip to content

Commit eb83930

Browse files
committed
cleanup
1 parent 90cde20 commit eb83930

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

tests/docstrings_examples/DocTest.res

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ module Node = {
22
module Path = {
33
@module("path") external join2: (string, string) => string = "join"
44
@module("path") @variadic external join: array<string> => string = "join"
5-
@module("path") external dirname: string => string = "dirname"
6-
}
7-
8-
module URL = {
9-
@module("url") external fileURLToPath: string => string = "fileURLToPath"
105
}
116

127
module Process = {
@@ -19,14 +14,9 @@ module Node = {
1914
}
2015

2116
module Fs = {
22-
@module("fs") external readFileSync: string => string = "readFileSync"
23-
@module("fs") external writeFileSync: (string, string) => unit = "writeFileSync"
24-
@module("fs") external mkdirSync: string => option<string> = "mkdirSync"
2517
@module("fs") external existsSync: string => bool = "existsSync"
2618
@module("fs") external readdirSync: string => array<string> = "readdirSync"
2719
@module("node:fs/promises") external writeFile: (string, string) => promise<unit> = "writeFile"
28-
@module("node:fs/promises") external unlink: string => promise<unit> = "unlink"
29-
@module("node:fs/promises") external lstat: string => promise<'a> = "lstat"
3020
}
3121

3222
module Buffer = {
@@ -35,10 +25,6 @@ module Node = {
3525
}
3626

3727
module ChildProcess = {
38-
type execSyncOpts = {stdio?: string, cwd?: string}
39-
@module("child_process")
40-
external execFileSync: (string, array<string>, execSyncOpts) => Buffer.t = "execFileSync"
41-
4228
type spawnSyncReturns = {stdout: Buffer.t}
4329
@module("child_process")
4430
external spawnSync: (string, array<string>) => spawnSyncReturns = "spawnSync"

tests/docstrings_examples/DocTest.res.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import * as RescriptTools_Docgen from "rescript/lib/es6/RescriptTools_Docgen.js"
1919

2020
let Path$1 = {};
2121

22-
let URL = {};
23-
2422
let Process = {};
2523

2624
let Fs$1 = {};
@@ -35,7 +33,6 @@ let Util = {};
3533

3634
let Node = {
3735
Path: Path$1,
38-
URL: URL,
3936
Process: Process,
4037
Fs: Fs$1,
4138
Buffer: Buffer,
@@ -189,7 +186,7 @@ function extractDocFromFile(file) {
189186
RE_EXN_ID: "Assert_failure",
190187
_1: [
191188
"DocTest.res",
192-
212,
189+
198,
193190
9
194191
],
195192
Error: new Error()

0 commit comments

Comments
 (0)