ESLint: Fix more warnings and errors.
This commit is contained in:
parent
66fb4e5004
commit
bfd6ca1d26
9 changed files with 84 additions and 56 deletions
server/shared/validation
|
@ -25,6 +25,9 @@ export interface Constraint {
|
|||
}
|
||||
|
||||
export type Constraints = { [key: string]: Constraint };
|
||||
export type NestedConstraints = {
|
||||
[key: string]: Constraint | Constraints | NestedConstraints;
|
||||
};
|
||||
export type Values = { [key: string]: unknown };
|
||||
|
||||
export function isConstraint(arg: unknown): arg is Constraint {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue