mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
- Delete hand-written index.d.ts that drifted from source - Add JSDoc type annotations to all source files - Create src/types.js with shared typedefs (SelfInfo, Contact, ContactMessage, ChannelInfo, RepeaterStats, etc.) - Add tsconfig.json for declaration generation - Add build:types script and prepublishOnly hook - Add GitHub Actions CI workflow for type checking - Use Uint8Array everywhere (no Buffer references) - Add semantic type aliases (EpochSeconds, Milliseconds, MilliVolts) - Add typed event overloads on Connection (on/once/off) - All 11 PR #15 review comments addressed
23 lines
547 B
JSON
23 lines
547 B
JSON
{
|
|
"name": "@liamcottle/meshcore.js",
|
|
"version": "1.11.0",
|
|
"description": "",
|
|
"main": "src/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build:types": "tsc",
|
|
"prepublishOnly": "npm run build:types",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"author": "Liam Cottle <liam@liamcottle.com>",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@noble/curves": "^1.8.1",
|
|
"serialport": "^13.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.2.3",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|