Skip to main content

makeFieldSchema()

Home > @backstage/plugin-scaffolder-react > makeFieldSchema

Signature:

function makeFieldSchema<TReturnType extends z.ZodType, TUiOptions extends z.ZodType>(options: {
output: (zImpl: typeof z) => TReturnType;
uiOptions?: (zImpl: typeof z) => TUiOptions;
}): FieldSchema<z.output<TReturnType>, z.output<TUiOptions>>;

Parameters

Parameter

Type

Description

options

{ output: (zImpl: typeof z) => TReturnType; uiOptions?: (zImpl: typeof z) => TUiOptions; }

**Returns:**

FieldSchema<z.output<TReturnType>, z.output<TUiOptions>>