@terrantula/sdk


@terrantula/sdk / withSchema

Function: withSchema()

withSchema<S, R>(schema, fn): SchemaFn<S, R>

Defined in: packages/sdk/src/helpers.ts:35

Type Parameters

S

S extends ZodObject<ZodRawShape, UnknownKeysParam, ZodTypeAny, {[key: string]: any; }, {[key: string]: any; }>

R

R

Parameters

schema

S

fn

(params) => Promise<R>

Returns

SchemaFn<S, R>