Skip to content

TypeScript API / @contentia/vite-plugin / createTypegen

Function: createTypegen() ​

ts
function createTypegen(options): ContentiaTypegen;

Create a typegen handle. When options.channel is provided it subscribes and regenerates incrementally; it also works one-shot with no channel.

Parameters ​

ParameterType
optionsContentiaTypegenOptions

Returns ​

ContentiaTypegen