This repository was archived by the owner on Jan 15, 2023. It is now read-only.
Releases: Mitsunee/picoapi
Releases · Mitsunee/picoapi
TypeScript Rewrite
Picoapi has been refactored to TypeScript, improving (and testing) the types that used to be in index.d.ts.
Changes:
- Api interfaces now need to extend
PicoApi(exported from "picoapi") - Api methods are now described using the
ApiMethod<ReturnType>interface - Most other interfaces have been (at least) renamed and/or rewritten to provide better compatibility
Known Problems:
- Hooks currently just use
anytype. - Nothing prevents adding a key not described with
ApiMethod<ReturnType>to an Api interface. Just avoid doing it unless you've read the source code of Picoapi and know what you're doing (protip: Don't forgetPromise<>...I keep forgetting :))