fossekall-interface
v0.1.6
Published
API contracts between client and server (rocket and GUI)
Readme
fossekall-interface
fossekall-interface provides generated TypeScript interfaces/schemas for
Fossekall data objects.
Current package exports are telemetry schemas and types from ecu/telemetry.
Install
npm install fossekall-interfaceUsage
Import from the package root:
import {
STATE_NAME,
BLDCTelemetry,
type BLDCTelemetry as BLDCTelemetryType,
FsmTelemetry,
type FsmTelemetry as FsmTelemetryType,
SawWaveTelemetry,
type SawWaveTelemetry as SawWaveTelemetryType,
} from "fossekall-interface";index.ts currently re-exports:
./ecu/telemetry
Current Generated API
STATE_NAMEtype STATE_NAMEBLDCTelemetrytype BLDCTelemetryFsmTelemetrytype FsmTelemetrySawWaveTelemetrytype SawWaveTelemetry
What Gets Published
Only the compiled output in dist/ is published to npm.
This package ships:
- JavaScript (
dist/**/*.js) - Type declarations (
dist/**/*.d.ts)
Source Layout
index.ts: package root exportsecu/telemetry.ts: generated telemetry schemas/typesdist/: compiled output used by npm consumers
Development
Run from this directory (generated/):
npm install
npm run buildThe build uses tsc and outputs to dist/.
Publishing
- Update version:
npm version patch- Publish:
npm publish --access privateIf you publish using a token, configure .npmrc with:
//registry.npmjs.org/:_authToken=${NPM_TOKEN}and export NPM_TOKEN in your shell before publishing.
