Skip to content

Commit 18e6176

Browse files
authored
distribute types (#147)
* npm install * generate declaration file * add missing type, rename file * rm invaild option * add types field
1 parent 610c8dc commit 18e6176

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

lib/dom/types.ts renamed to lib/dom/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ declare global {
1919
debugDom: () => Promise<void>;
2020
cleanupDebug: () => void;
2121
scrollToHeight: (height: number) => Promise<void>;
22+
waitForDomSettle: () => Promise<void>;
2223
}
2324
}

lib/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ async function getBrowser(
108108
"--disable-web-security",
109109
],
110110
bypassCSP: true,
111-
userDataDir: "./user_data",
112111
},
113112
);
114113

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "An AI web browsing framework focused on simplicity and extensibility.",
55
"main": "./dist/index.js",
66
"module": "./dist/index.js",
7+
"types": "./dist/index.d.ts",
78
"scripts": {
89
"2048": "npm run build-dom-scripts && tsx examples/2048.ts",
910
"example": "npm run build-dom-scripts && tsx examples/example.ts",
@@ -13,7 +14,7 @@
1314
"evals": "npm run build-dom-scripts && npx braintrust eval evals/index.eval.ts",
1415
"build-dom-scripts": "mkdir -p ./lib/dom/build && mkdir -p ./dist/dom/build && esbuild ./lib/dom/*.ts --bundle --outdir=./dist/dom/build",
1516
"bundle-dom-scripts": "esbuild ./lib/dom/index.ts --bundle --outfile=./lib/dom/bundle.js --platform=browser --target=es2015 --minify",
16-
"build": "npm run build-dom-scripts && tsup lib/index.ts",
17+
"build": "npm run build-dom-scripts && tsup lib/index.ts --dts",
1718
"release": "changeset publish"
1819
},
1920
"files": [

0 commit comments

Comments
 (0)