Skip to content
This repository was archived by the owner on Jan 15, 2023. It is now read-only.

Releases: Mitsunee/picoapi

TypeScript Rewrite

20 Apr 12:49

Choose a tag to compare

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 any type.
  • 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 forget Promise<> ...I keep forgetting :))

v0.1.2

30 Mar 18:06

Choose a tag to compare

  • new repository url

v0.1.1

03 Mar 15:56

Choose a tag to compare

  • fix package config
  • migrate to nano-staged (dev-only, does not affect npm package)
  • added more planned features :)

v0.1.0

21 Feb 15:00

Choose a tag to compare

  • PicoApi is now tested for Node12.x and higher
  • added unbind method to unbind hooks (leave argument empty to unbind all hooks)

v0.0.0

20 Feb 14:28

Choose a tag to compare

v0.0.0 Pre-release
Pre-release
   v0.0.0