PlatformFunctions is an open interface that serves as a registry of platform function signatures. It is empty by default and can be extended:
At build time — run ptkl generate-types to fetch your project's functions and emit a .d.ts file with a module augmentation block:
ptkl generate-types
.d.ts
declare module "@ptkl/sdk" { interface PlatformFunctions { "send_email": { input: { body: string; to: string }; output: { status: boolean } } }} Copy
declare module "@ptkl/sdk" { interface PlatformFunctions { "send_email": { input: { body: string; to: string }; output: { status: boolean } } }}
PlatformFunctions is an open interface that serves as a registry of platform function signatures. It is empty by default and can be extended:
At build time — run
ptkl generate-typesto fetch your project's functions and emit a.d.tsfile with a module augmentation block: