extism / js-pdk

Write Extism plugins in JavaScript & TypeScript
52 stars 16 forks source link

feat: revise types #71

Closed Phault closed 4 months ago

Phault commented 4 months ago

This is a continuation of @nilslice's awesome work in https://github.com/extism/js-pdk/pull/60.

Differences are:

Note I renamed the js-runtime-prelude package to @extism/js-pdk, as it will need to be published to get the types out. Let me know, if it should be named differently.

@nilslice This PR targets your branch currently, I don't know if that's how you'd prefer this delivered. Let me know if I should just target main instead. :)

There's some leftover "todo: validate" from that PR as well in memory.ts. I left those in as I'm unsure what should be validated?