-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generate correct types for cut/copy/paste events (#92)
* fix: generate correct types for cut/copy/paste events * Run "yarn test:snapshot"
- Loading branch information
Showing
4 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<input on:input on:change on:paste /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/// <reference types="svelte" /> | ||
import type { SvelteComponentTyped } from "svelte"; | ||
|
||
export interface InputProps {} | ||
|
||
export default class Input extends SvelteComponentTyped< | ||
InputProps, | ||
{ | ||
input: WindowEventMap["input"]; | ||
change: WindowEventMap["change"]; | ||
paste: DocumentAndElementEventHandlersEventMap["paste"]; | ||
}, | ||
{} | ||
> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"props": [], | ||
"moduleExports": [], | ||
"slots": [], | ||
"events": [ | ||
{ | ||
"type": "forwarded", | ||
"name": "input", | ||
"element": "input" | ||
}, | ||
{ | ||
"type": "forwarded", | ||
"name": "change", | ||
"element": "input" | ||
}, | ||
{ | ||
"type": "forwarded", | ||
"name": "paste", | ||
"element": "input" | ||
} | ||
], | ||
"typedefs": [] | ||
} |