Type alias OptionalInsertFields<Entity, AST>

OptionalInsertFields<Entity, AST>: { [ K in keyof AST[Entity]["fields"]]: AST[Entity]["fields"][K] extends {
    generationStrategy: infer GenerationStrategy;
    isId: infer IsId;
} ? IsId extends true ? GenerationStrategy extends "user" ? never : K : GenerationStrategy extends "middleware" ? K : GenerationStrategy extends "generator" ? K : never : never }[keyof AST[Entity]["fields"]]

Type Parameters

Generated using TypeDoc