fix(pagination): type dispatched update event

This commit is contained in:
Eric Liu 2020-12-05 16:56:33 -08:00
commit ed8977beea
6 changed files with 79 additions and 63 deletions

View file

@ -102,6 +102,6 @@ export default class Pagination {
$$prop_def: PaginationProps;
$$slot_def: {};
$on(eventname: "update", cb: (event: CustomEvent<any>) => void): () => void;
$on(eventname: "update", cb: (event: CustomEvent<{ pageSize: number; page: number }>) => void): () => void;
$on(eventname: string, cb: (event: Event) => void): () => void;
}