svelte2tsx
Advanced tools
Comparing version 0.1.68 to 0.1.69
{ | ||
"name": "svelte2tsx", | ||
"version": "0.1.68", | ||
"version": "0.1.69", | ||
"description": "Convert Svelte components to TSX for type checking", | ||
@@ -5,0 +5,0 @@ "author": "David Pershouse", |
@@ -53,2 +53,3 @@ /** | ||
type TouchEventHandler<T> = EventHandler<TouchEvent, T>; | ||
type PointerEventHandler<T> = EventHandler<PointerEvent, T>; | ||
type UIEventHandler<T> = EventHandler<UIEvent, T>; | ||
@@ -58,2 +59,3 @@ type WheelEventHandler<T> = EventHandler<WheelEvent, T>; | ||
type TransitionEventHandler<T> = EventHandler<TransitionEvent, T>; | ||
type MessageEventHandler<T> = EventHandler<MessageEvent, T>; | ||
@@ -90,145 +92,101 @@ type ClassNameBase = boolean | string | number | void | null; | ||
oncopy?: ClipboardEventHandler<T>; | ||
oncopycapture?: ClipboardEventHandler<T>; | ||
oncut?: ClipboardEventHandler<T>; | ||
oncutcapture?: ClipboardEventHandler<T>; | ||
onpaste?: ClipboardEventHandler<T>; | ||
onpastecapture?: ClipboardEventHandler<T>; | ||
// Composition Events | ||
oncompositionend?: CompositionEventHandler<T>; | ||
oncompositionendcapture?: CompositionEventHandler<T>; | ||
oncompositionstart?: CompositionEventHandler<T>; | ||
oncompositionstartcapture?: CompositionEventHandler<T>; | ||
oncompositionupdate?: CompositionEventHandler<T>; | ||
oncompositionupdatecapture?: CompositionEventHandler<T>; | ||
// Focus Events | ||
onfocus?: FocusEventHandler<T>; | ||
onfocuscapture?: FocusEventHandler<T>; | ||
onblur?: FocusEventHandler<T>; | ||
onblurcapture?: FocusEventHandler<T>; | ||
// Form Events | ||
onchange?: FormEventHandler<T>; | ||
onchangecapture?: FormEventHandler<T>; | ||
oninput?: FormEventHandler<T>; | ||
oninputcapture?: FormEventHandler<T>; | ||
onreset?: FormEventHandler<T>; | ||
onresetcapture?: FormEventHandler<T>; | ||
onsubmit?: FormEventHandler<T>; | ||
onsubmitcapture?: FormEventHandler<T>; | ||
oninvalid?: EventHandler<T>; | ||
// Image Events | ||
onload?: EventHandler; | ||
onloadcapture?: EventHandler; | ||
onerror?: EventHandler; // also a Media Event | ||
onerrorcapture?: EventHandler; // also a Media Event | ||
// Keyboard Events | ||
onkeydown?: KeyboardEventHandler<T>; | ||
onkeydowncapture?: KeyboardEventHandler<T>; | ||
onkeypress?: KeyboardEventHandler<T>; | ||
onkeypresscapture?: KeyboardEventHandler<T>; | ||
onkeyup?: KeyboardEventHandler<T>; | ||
onkeyupcapture?: KeyboardEventHandler<T>; | ||
// Media Events | ||
onabort?: EventHandler<T>; | ||
onabortcapture?: EventHandler<T>; | ||
oncanplay?: EventHandler<T>; | ||
oncanplaycapture?: EventHandler<T>; | ||
oncanplaythrough?: EventHandler<T>; | ||
oncanplaythroughcapture?: EventHandler<T>; | ||
oncuechange?: EventHandler<T>; | ||
ondurationchange?: EventHandler<T>; | ||
ondurationchangecapture?: EventHandler<T>; | ||
onemptied?: EventHandler<T>; | ||
onemptiedcapture?: EventHandler<T>; | ||
onencrypted?: EventHandler<T>; | ||
onencryptedcapture?: EventHandler<T>; | ||
onended?: EventHandler<T>; | ||
onendedcapture?: EventHandler<T>; | ||
onloadeddata?: EventHandler<T>; | ||
onloadeddatacapture?: EventHandler<T>; | ||
onloadedmetadata?: EventHandler<T>; | ||
onloadedmetadatacapture?: EventHandler<T>; | ||
onloadstart?: EventHandler<T>; | ||
onloadstartcapture?: EventHandler<T>; | ||
onpause?: EventHandler<T>; | ||
onpausecapture?: EventHandler<T>; | ||
onplay?: EventHandler<T>; | ||
onplaycapture?: EventHandler<T>; | ||
onplaying?: EventHandler<T>; | ||
onplayingcapture?: EventHandler<T>; | ||
onprogress?: EventHandler<T>; | ||
onprogresscapture?: EventHandler<T>; | ||
onratechange?: EventHandler<T>; | ||
onratechangecapture?: EventHandler<T>; | ||
onseeked?: EventHandler<T>; | ||
onseekedcapture?: EventHandler<T>; | ||
onseeking?: EventHandler<T>; | ||
onseekingcapture?: EventHandler<T>; | ||
onstalled?: EventHandler<T>; | ||
onstalledcapture?: EventHandler<T>; | ||
onsuspend?: EventHandler<T>; | ||
onsuspendcapture?: EventHandler<T>; | ||
ontimeupdate?: EventHandler<T>; | ||
ontimeupdatecapture?: EventHandler<T>; | ||
onvolumechange?: EventHandler<T>; | ||
onvolumechangecapture?: EventHandler<T>; | ||
onwaiting?: EventHandler<T>; | ||
onwaitingcapture?: EventHandler<T>; | ||
// MouseEvents | ||
onauxclick?: MouseEventHandler<T>; | ||
onclick?: MouseEventHandler<T>; | ||
onclickcapture?: MouseEventHandler<T>; | ||
oncontextmenu?: MouseEventHandler<T>; | ||
oncontextmenucapture?: MouseEventHandler<T>; | ||
ondblclick?: MouseEventHandler<T>; | ||
ondblclickcapture?: MouseEventHandler<T>; | ||
ondrag?: DragEventHandler<T>; | ||
ondragcapture?: DragEventHandler<T>; | ||
ondragend?: DragEventHandler<T>; | ||
ondragendcapture?: DragEventHandler<T>; | ||
ondragenter?: DragEventHandler<T>; | ||
ondragentercapture?: DragEventHandler<T>; | ||
ondragexit?: DragEventHandler<T>; | ||
ondragexitcapture?: DragEventHandler<T>; | ||
ondragleave?: DragEventHandler<T>; | ||
ondragleavecapture?: DragEventHandler<T>; | ||
ondragover?: DragEventHandler<T>; | ||
ondragovercapture?: DragEventHandler<T>; | ||
ondragstart?: DragEventHandler<T>; | ||
ondragstartcapture?: DragEventHandler<T>; | ||
ondrop?: DragEventHandler<T>; | ||
ondropcapture?: DragEventHandler<T>; | ||
onmousedown?: MouseEventHandler<T>; | ||
onmousedowncapture?: MouseEventHandler<T>; | ||
onmouseenter?: MouseEventHandler<T>; | ||
onmouseleave?: MouseEventHandler<T>; | ||
onmousemove?: MouseEventHandler<T>; | ||
onmousemovecapture?: MouseEventHandler<T>; | ||
onmouseout?: MouseEventHandler<T>; | ||
onmouseoutcapture?: MouseEventHandler<T>; | ||
onmouseover?: MouseEventHandler<T>; | ||
onmouseovercapture?: MouseEventHandler<T>; | ||
onmouseup?: MouseEventHandler<T>; | ||
onmouseupcapture?: MouseEventHandler<T>; | ||
// Selection Events | ||
onselect?: EventHandler<T>; | ||
onselectcapture?: EventHandler<T>; | ||
onselectionchange?: EventHandler<T>; | ||
onselectstart?: EventHandler<T>; | ||
// Touch Events | ||
ontouchcancel?: TouchEventHandler<T>; | ||
ontouchcancelcapture?: TouchEventHandler<T>; | ||
ontouchend?: TouchEventHandler<T>; | ||
ontouchendcapture?: TouchEventHandler<T>; | ||
ontouchmove?: TouchEventHandler<T>; | ||
ontouchmovecapture?: TouchEventHandler<T>; | ||
ontouchstart?: TouchEventHandler<T>; | ||
ontouchstartcapture?: TouchEventHandler<T>; | ||
// Pointer Events | ||
ongotpointercapture?: PointerEventHandler<T>; | ||
onpointercancel?: PointerEventHandler<T>; | ||
onpointerdown?: PointerEventHandler<T>; | ||
onpointerenter?: PointerEventHandler<T>; | ||
onpointerleave?: PointerEventHandler<T>; | ||
onpointermove?: PointerEventHandler<T>; | ||
onpointerout?: PointerEventHandler<T>; | ||
onpointerover?: PointerEventHandler<T>; | ||
onpointerup?: PointerEventHandler<T>; | ||
onlostpointercapture?: PointerEventHandler<T>; | ||
// UI Events | ||
onscroll?: UIEventHandler<T>; | ||
onscrollcapture?: UIEventHandler<T>; | ||
onresize?: UIEventHandler<T>; | ||
@@ -238,15 +196,20 @@ | ||
onwheel?: WheelEventHandler<T>; | ||
onwheelcapture?: WheelEventHandler<T>; | ||
// Animation Events | ||
onanimationstart?: AnimationEventHandler<T>; | ||
onanimationstartcapture?: AnimationEventHandler<T>; | ||
onanimationend?: AnimationEventHandler<T>; | ||
onanimationendcapture?: AnimationEventHandler<T>; | ||
onanimationiteration?: AnimationEventHandler<T>; | ||
onanimationiterationcapture?: AnimationEventHandler<T>; | ||
// Transition Events | ||
ontransitionend?: TransitionEventHandler<T>; | ||
ontransitionendcapture?: TransitionEventHandler<T>; | ||
// Message Events | ||
onmessage?: MessageEventHandler<T>; | ||
onmessageerror?: MessageEventHandler<T>; | ||
// Global Events | ||
oncancel?: EventHandler<T>; | ||
onclose?: EventHandler<T>; | ||
onfullscreenchange?: EventHandler<T>; | ||
onfullscreenerror?: EventHandler<T>; | ||
} | ||
@@ -707,2 +670,21 @@ | ||
readonly online?: Window['navigator']['onLine']; | ||
onbeforeprint?: EventHandler<Event, Window>; | ||
onafterprint?: EventHandler<Event, Window>; | ||
onlanguagechange?: EventHandler<Event, Window>; | ||
onoffline?: EventHandler<Event, Window>; | ||
ononline?: EventHandler<Event, Window>; | ||
onbeforeunload?: EventHandler<Event, Window>; | ||
onunload?: EventHandler<Event, Window>; | ||
onstorage?: EventHandler<StorageEvent, Window>; | ||
onhashchange?: EventHandler<HashChangeEvent, Window>; | ||
onpagehide?: EventHandler<PageTransitionEvent, Window>; | ||
onpageshow?: EventHandler<PageTransitionEvent, Window>; | ||
onpopstate?: EventHandler<PopStateEvent, Window>; | ||
ondevicemotion?: EventHandler<DeviceMotionEvent>; | ||
ondeviceorientation?: EventHandler<DeviceOrientationEvent, Window>; | ||
ondeviceorientationabsolute?: EventHandler<DeviceOrientationEvent, Window>; | ||
onunhandledrejection?: EventHandler<PromiseRejectionEvent, Window>; | ||
onrejectionhandled?: EventHandler<PromiseRejectionEvent, Window>; | ||
} | ||
@@ -709,0 +691,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
895000
19874