chore: lint

This commit is contained in:
karishmas6
2024-07-15 22:33:09 +05:30
parent dd7a7918c6
commit 627536a2f2

View File

@@ -11,7 +11,7 @@ export type Meta = typeof meta[number];
export type SelectorArray = string[];
type RegexableString = string | { '$regex':string };
type RegexableString = string | { '$regex': string };
type BaseConditions = {
'url': RegexableString,
@@ -20,9 +20,9 @@ type BaseConditions = {
} & Record<Meta, RegexableString>;
export type Where =
Partial<{ [key in NAryOperator]: Where[] }> & // either a logic operator (arity N)
Partial<{ [key in UnaryOperator]: Where }> & // or an unary operator
Partial<BaseConditions>; // or one of the base conditions
Partial<{ [key in NAryOperator]: Where[] }> & // either a logic operator (arity N)
Partial<{ [key in UnaryOperator]: Where }> & // or an unary operator
Partial<BaseConditions>; // or one of the base conditions
type MethodNames<T> = {
[K in keyof T]: T[K] extends Function ? K : never;