Metakit / @doeixd/metakit/fn

ArgInputs

type · packages/metakit/src/fnTypes.ts:36

type ArgInputs<P extends ParamSchemas> = [OptionalTypeKeys<P>] extends [never]
  ? {
      readonly [K in keyof P]: ExprInput<never, Path.Read<P[K]['Type']>>
    }
  : {
      readonly [K in Exclude<keyof P, OptionalTypeKeys<P>>]: ExprInput<
        never,
        Path.Read<P[K]['Type']>
      >
    } & {
      readonly [K in OptionalTypeKeys<P>]?: ExprInput<
        never,
        Path.Read<P[K]['Type']>
      >
    }

Argument inputs accepted when calling a Fn symbolically inside an expression.