enforce no parameter on action in types
This commit is contained in:
parent
6cbc2346c4
commit
2f688744f2
1 changed files with 1 additions and 4 deletions
5
validator.d.ts
vendored
5
validator.d.ts
vendored
|
@ -3,10 +3,7 @@ import { Writable } from 'svelte/store';
|
|||
|
||||
type Falsy = false | 0 | '' | null | undefined;
|
||||
|
||||
type Validator<T> = Action &
|
||||
Writable<T | Falsy> & {
|
||||
validate: (display?: boolean) => boolean;
|
||||
};
|
||||
type Validator<T> = Action<HTMLElement, undefined> & Writable<T | Falsy> & { validate: (display?: boolean) => boolean };
|
||||
|
||||
export function validator<T = string>(chill?: boolean): Validator<T>;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue