Skip to content

Commit

Permalink
fix: fix type errors (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Jun 20, 2023
1 parent c737349 commit 01912d3
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/helpers/namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export type CreateManyInput<T> =
*/
export type TypedNestedStringFilter<S extends string> = Prisma.StringFilter & {
equals?: S;
in?: Prisma.Enumerable<S>;
notIn?: Prisma.Enumerable<S>;
in?: S | S[];
notIn?: S | S[];
not: TypedNestedStringFilter<S> | S
}
Expand All @@ -61,8 +61,8 @@ export type TypedNestedStringFilter<S extends string> = Prisma.StringFilter & {
*/
export type TypedStringFilter<S extends string> = Prisma.StringFilter & {
equals?: S;
in?: Prisma.Enumerable<S>;
notIn?: Prisma.Enumerable<S>;
in?: S | S[];
notIn?: S | S[];
not: TypedNestedStringFilter<S> | S
}
Expand All @@ -71,8 +71,8 @@ export type TypedStringFilter<S extends string> = Prisma.StringFilter & {
*/
export type TypedNestedStringNullableFilter<S extends string> = Prisma.StringNullableFilter & {
equals?: S | null;
in?: Prisma.Enumerable<S> | null;
notIn?: Prisma.Enumerable<S> | null;
in?: S | S[] | null;
notIn?: S | S[] | null;
not: TypedNestedStringNullableFilter<S> | S | null
}
Expand All @@ -81,8 +81,8 @@ export type TypedNestedStringNullableFilter<S extends string> = Prisma.StringNul
*/
export type TypedStringNullableFilter<S extends string> = Prisma.StringNullableFilter & {
equals?: S | null;
in?: Prisma.Enumerable<S> | null;
notIn?: Prisma.Enumerable<S> | null;
in?: S | S[] | null;
notIn?: S | S[] | null;
not: TypedNestedStringNullableFilter<S> | S | null
}
Expand All @@ -91,8 +91,8 @@ export type TypedStringNullableFilter<S extends string> = Prisma.StringNullableF
*/
export type TypedNestedStringWithAggregatesFilter<S extends string> = Prisma.NestedStringWithAggregatesFilter & {
equals?: S;
in?: Prisma.Enumerable<S>;
notIn?: Prisma.Enumerable<S>;
in?: S | S[];
notIn?: S | S[];
not: TypedNestedStringWithAggregatesFilter<S> | S
}
Expand All @@ -101,8 +101,8 @@ export type TypedNestedStringWithAggregatesFilter<S extends string> = Prisma.Nes
*/
export type TypedStringWithAggregatesFilter<S extends string> = Prisma.StringWithAggregatesFilter & {
equals?: S;
in?: Prisma.Enumerable<S>;
notIn?: Prisma.Enumerable<S>;
in?: S | S[];
notIn?: S | S[];
not?: TypedNestedStringWithAggregatesFilter<S> | S
}
Expand All @@ -111,18 +111,18 @@ export type TypedStringWithAggregatesFilter<S extends string> = Prisma.StringWit
*/
export type TypedNestedStringNullableWithAggregatesFilter<S extends string> = Prisma.NestedStringNullableWithAggregatesFilter & {
equals?: S | null;
in?: Prisma.Enumerable<S> | null;
notIn?: Prisma.Enumerable<S> | null;
in?: S | S[] | null;
notIn?: S | S[] | null;
not: TypedNestedStringNullableWithAggregatesFilter<S> | 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<S extends string> = Prisma.StringNullableWithAggregatesFilter & {
equals?: S | null;
in?: Prisma.Enumerable<S> | null;
notIn?: Prisma.Enumerable<S> | null;
in?: S | S[] | null;
notIn?: S | S[] | null;
not?: TypedNestedStringNullableWithAggregatesFilter<S> | S | null
}
Expand All @@ -144,25 +144,25 @@ export type TypedNullableStringFieldUpdateOperationsInput<S extends string> = Pr
* A typed version of StringNullableListFilter, allowing narrowing of string types to discriminated unions.
*/
export type TypedStringNullableListFilter<S extends string> = Prisma.StringNullableListFilter & {
equals?: Enumerable<S> | null
equals?: S | S[] | null
has?: S | null
hasEvery?: Enumerable<S>
hasSome?: Enumerable<S>
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<S extends string> = {
set?: Enumerable<S>
push?: S | Enumerable<S>
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<S extends string> = {
set?: Enumerable<S>
set?: S | S[]
}
`.trim();
Expand Down

0 comments on commit 01912d3

Please sign in to comment.