I have already found out how to properly type plugins in piral (by using declaration merging).
This only seems to work for pilet api extensions coming from dedicated packages and also only if there is an api.d.ts in its root folder.
How can I type pilet api extensions that are defined directly in the piral instance?
What I tried so far:
- Placing an api.d.ts in the src folder
- Placing the relevant typings directly in the src/index.tsx file
- Changing the typings field in the package.json to either one (and others like src/types.ts)