1
Fork 0

enforce no parameter on action in types

This commit is contained in:
Conduitry 2022-08-09 09:03:07 -04:00
parent 6cbc2346c4
commit 2f688744f2
1 changed files with 1 additions and 4 deletions

5
validator.d.ts vendored
View File

@ -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>;