InferNb<C>: keyof C extends never
    ? {
        nb?: never;
    }
    : {
        nb: C;
    }

Given an inferred capability infers if the nb field is optional or not

Type Parameters

  • C extends Record<string, unknown> | undefined

Generated using TypeDoc