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

Latest commit

 

History

History
18 lines (14 loc) · 368 Bytes

File metadata and controls

18 lines (14 loc) · 368 Bytes

Create API

Add your API in libs/plugins-runtime/src/lib/api/index.ts.

Try to use zod to validate the input an output, for example:

{
  sum: z.function()
    .args(z.number(), z.number())
    .returns(z.number())
    .implement((callback, time) => {
      setTimeout(callback, time);
    });
}

Update /libs/plugins-runtime/src/lib/api/index.d.ts.