types: fix puter-js type exports (#2090)

* chore: add typedefs for puter.js

* types: fix puter-js type exports
This commit is contained in:
Daniel Salazar
2025-12-02 21:36:46 -08:00
committed by GitHub
parent 71e6a59d13
commit 6419d57d84
5 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -21392,7 +21392,7 @@
},
"src/puter-js": {
"name": "@heyputer/puter.js",
"version": "2.1.6",
"version": "2.1.9",
"license": "Apache-2.0",
"dependencies": {
"@heyputer/kv.js": "^0.2.1",
+2 -1
View File
@@ -26,7 +26,7 @@ declare global {
declare const puter: Puter;
export default puter;
export { puter, Puter };
export { puter };
export type {
AI,
@@ -109,6 +109,7 @@ export type {
WorkerInfo,
WorkersHandler,
WriteOptions,
Puter
};
// NOTE: Provider-specific response bodies (AI, drivers, workers logging stream) intentionally
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "puter",
"version": "2.1.6",
"version": "2.1.9",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "puter",
"version": "2.1.6",
"version": "2.1.9",
"license": "Apache-2.0",
"dependencies": {
"@heyputer/kv.js": "^0.1.92",
+4 -3
View File
@@ -1,14 +1,15 @@
{
"name": "@heyputer/puter.js",
"version": "2.1.6",
"version": "2.1.9",
"description": "Puter.js - A JavaScript library for interacting with Puter services.",
"main": "src/index.js",
"types": "index.d.ts",
"typings": "index.d.ts",
"types": "./index.d.ts",
"typings": "./index.d.ts",
"type": "module",
"files": [
"dist/puter.cjs",
"src/",
"types/",
"index.d.ts"
],
"publishConfig": {
+1
View File
@@ -5,6 +5,7 @@
"noEmit": true,
"target": "es6",
"module": "esnext",
"lib": ["ESNext"],
"moduleResolution": "bundler",
"outDir": "build",
"esModuleInterop": true,