Skip to content

Checked beta ​

TypeAlias of @v12-engine/engine

ts
export type Checked<F extends Fields> = {
    [K in keyof F as K extends OptionalKeys<F> ? never : K]: Out<F[K]>;
} & {
    [K in OptionalKeys<F>]?: Exclude<Out<F[K]>, undefined>;
};

The type a set of checkers hands back. Fields that may be left out are optional