NestedTypes<Bag, T>: {
    [K in keyof T["fields"] as T["fields"][K] extends EnumType | CustomType<CustomTypeParamShape>
        ? K
        : never]: K extends keyof Bag
        ? {
            __entityType: T["fields"][K] extends EnumType
                ? "enum"
                : "customType";
            type: Exclude<Bag[K], null | undefined>;
        }
        : never
}

Type Parameters