Skip to content

Function: defineManifest() ​

ts
function defineManifest<C, A>(spec): AppManifestSpec<C, A>;

Identity helper so the schemas drive inference for the actions and the context.

Type Parameters ​

C ​

C extends ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

A ​

A extends Record<string, ActionSpec<ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>, ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>>>

Parameters ​

spec ​

AppManifestSpec<C, A>

Returns ​

AppManifestSpec<C, A>

Released under the Apache-2.0 License.