enforce no parameter on action in types

master
Conduitry 2 months ago
parent 6cbc2346c4
commit 2f688744f2
  1. 5
      validator.d.ts

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…
Cancel
Save