Files
puter/src/puter-js/tsconfig.types.json
T
Daniel Salazar 20b3b88e39 metering: big fixes to metering + jsdoc types (#3547)
Changes are:
- global egress metering
- remove file egress cost
- introduce file op cost for the per request cost s3 has
- enforce fs read/download etc to through 402 when out of usage; allow for subdomains
- enforce kv metering when out of usage through 402; allow for workers
- jsdoc as source of truth for puter.js types
- kv driver caching for get and batchget operations with decreased costs
2026-08-12 01:06:04 -07:00

31 lines
1.0 KiB
JSON

{
// Generates `types/` from the JSDoc in `src/`. The JSDoc is the source of
// truth for the published type surface; nothing under `types/` is written
// by hand or committed — the SDK build regenerates it and the npm tarball
// ships it. `npm run check:puterjs:types` runs this and type-checks the
// result without skipLibCheck, which is what CI gates on.
"compilerOptions": {
"target": "es2022",
"lib": ["es2022", "dom", "dom.iterable"],
"module": "nodenext",
"moduleResolution": "nodenext",
"allowJs": true,
"checkJs": false,
"declaration": true,
"emitDeclarationOnly": true,
"skipLibCheck": true,
"strict": true,
// Members tagged `@internal` are implementation detail and stay out of
// the published surface.
"stripInternal": true,
"rootDir": "src",
"outDir": "types"
},
"include": ["src/**/*.js"],
"exclude": [
"src/**/*.test.js",
"src/config.js",
"node_modules"
]
}