From 01912d3ca773c201aaff87ec2f6beea9ef982c52 Mon Sep 17 00:00:00 2001 From: arthurfiorette Date: Tue, 20 Jun 2023 15:27:00 -0300 Subject: [PATCH] fix: fix type errors (#75) --- src/helpers/namespace.ts | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/helpers/namespace.ts b/src/helpers/namespace.ts index 90894fd..013d824 100644 --- a/src/helpers/namespace.ts +++ b/src/helpers/namespace.ts @@ -51,8 +51,8 @@ export type CreateManyInput = */ export type TypedNestedStringFilter = Prisma.StringFilter & { equals?: S; - in?: Prisma.Enumerable; - notIn?: Prisma.Enumerable; + in?: S | S[]; + notIn?: S | S[]; not: TypedNestedStringFilter | S } @@ -61,8 +61,8 @@ export type TypedNestedStringFilter = Prisma.StringFilter & { */ export type TypedStringFilter = Prisma.StringFilter & { equals?: S; - in?: Prisma.Enumerable; - notIn?: Prisma.Enumerable; + in?: S | S[]; + notIn?: S | S[]; not: TypedNestedStringFilter | S } @@ -71,8 +71,8 @@ export type TypedStringFilter = Prisma.StringFilter & { */ export type TypedNestedStringNullableFilter = Prisma.StringNullableFilter & { equals?: S | null; - in?: Prisma.Enumerable | null; - notIn?: Prisma.Enumerable | null; + in?: S | S[] | null; + notIn?: S | S[] | null; not: TypedNestedStringNullableFilter | S | null } @@ -81,8 +81,8 @@ export type TypedNestedStringNullableFilter = Prisma.StringNul */ export type TypedStringNullableFilter = Prisma.StringNullableFilter & { equals?: S | null; - in?: Prisma.Enumerable | null; - notIn?: Prisma.Enumerable | null; + in?: S | S[] | null; + notIn?: S | S[] | null; not: TypedNestedStringNullableFilter | S | null } @@ -91,8 +91,8 @@ export type TypedStringNullableFilter = Prisma.StringNullableF */ export type TypedNestedStringWithAggregatesFilter = Prisma.NestedStringWithAggregatesFilter & { equals?: S; - in?: Prisma.Enumerable; - notIn?: Prisma.Enumerable; + in?: S | S[]; + notIn?: S | S[]; not: TypedNestedStringWithAggregatesFilter | S } @@ -101,8 +101,8 @@ export type TypedNestedStringWithAggregatesFilter = Prisma.Nes */ export type TypedStringWithAggregatesFilter = Prisma.StringWithAggregatesFilter & { equals?: S; - in?: Prisma.Enumerable; - notIn?: Prisma.Enumerable; + in?: S | S[]; + notIn?: S | S[]; not?: TypedNestedStringWithAggregatesFilter | S } @@ -111,18 +111,18 @@ export type TypedStringWithAggregatesFilter = Prisma.StringWit */ export type TypedNestedStringNullableWithAggregatesFilter = Prisma.NestedStringNullableWithAggregatesFilter & { equals?: S | null; - in?: Prisma.Enumerable | null; - notIn?: Prisma.Enumerable | null; + in?: S | S[] | null; + notIn?: S | S[] | null; not: TypedNestedStringNullableWithAggregatesFilter | S | null } /** - * A typed version of tringNullableWithAggregatesFilter, allowing narrowing of string types to discriminated unions. + * A typed version of StringNullableWithAggregatesFilter, allowing narrowing of string types to discriminated unions. */ export type TypedStringNullableWithAggregatesFilter = Prisma.StringNullableWithAggregatesFilter & { equals?: S | null; - in?: Prisma.Enumerable | null; - notIn?: Prisma.Enumerable | null; + in?: S | S[] | null; + notIn?: S | S[] | null; not?: TypedNestedStringNullableWithAggregatesFilter | S | null } @@ -144,25 +144,25 @@ export type TypedNullableStringFieldUpdateOperationsInput = Pr * A typed version of StringNullableListFilter, allowing narrowing of string types to discriminated unions. */ export type TypedStringNullableListFilter = Prisma.StringNullableListFilter & { - equals?: Enumerable | null + equals?: S | S[] | null has?: S | null - hasEvery?: Enumerable - hasSome?: Enumerable + hasEvery?: S | S[] + hasSome?: S | S[] } /** * A typed version of the input type to update a string[] field, allowing narrowing of string types to discriminated unions. */ export type UpdateStringArrayInput = { - set?: Enumerable - push?: S | Enumerable + set?: S | S[] + push?: S | S[] } /** * A typed version of the input type to create a string[] field, allowing narrowing of string types to discriminated unions. */ export type CreateStringArrayInput = { - set?: Enumerable + set?: S | S[] } `.trim();