createSchemaFromZod()
Home > @backstage/frontend-plugin-api
> createSchemaFromZod
Signature:
function createSchemaFromZod<TOutput, TInput>(schemaCreator: (zImpl: typeof z) => ZodSchema<TOutput, ZodTypeDef, TInput>): PortableSchema<TOutput>;
Parameters
Parameter | Type | Description |
---|---|---|
schemaCreator | (zImpl: typeof z) => ZodSchema<TOutput, ZodTypeDef, TInput> |
Returns:
PortableSchema<TOutput>