Skip to content

Commit

Permalink
Update svelte-jsx.d.ts (#408)
Browse files Browse the repository at this point in the history
* Update svelte-jsx.d.ts

Adding missing type definitions for on:intro and on:outro start and end events.

```
Type '{ onoutrostart: () => boolean; onoutroend: () => boolean; class: string; }' is not assignable to type 'HTMLProps<HTMLDivElement>'.
  Property 'onoutrostart' does not exist on type 'HTMLProps<HTMLDivElement>'.ts(2322)
```

* Update svelte-jsx.d.ts

* Update svelte-jsx.d.ts

separated event types with vanilla dom comment

* Update svelte-jsx.d.ts

* ran yarn lint --fix
  • Loading branch information
BlackFenix2 committed Aug 2, 2020
1 parent 635c95b commit ebf6149
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/svelte2tsx/svelte-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@
// Transition Events
ontransitionend?: TransitionEventHandler<T>;

// Svelte Transition Events
onoutrostart?: EventHandler<CustomEvent<null>, T>;
onoutroend?: EventHandler<CustomEvent<null>, T>;
onintrostart?: EventHandler<CustomEvent<null>, T>;
onintroend?: EventHandler<CustomEvent<null>, T>;

// Message Events
onmessage?: MessageEventHandler<T>;
onmessageerror?: MessageEventHandler<T>;
Expand Down

0 comments on commit ebf6149

Please sign in to comment.