svelte2tsx
Advanced tools
Comparing version 0.1.99 to 0.1.100
{ | ||
"name": "svelte2tsx", | ||
"version": "0.1.99", | ||
"version": "0.1.100", | ||
"description": "Convert Svelte components to TSX for type checking", | ||
@@ -5,0 +5,0 @@ "author": "David Pershouse", |
@@ -251,11 +251,14 @@ /** | ||
// Doesn't work when used as HTML attribute | ||
/** | ||
* Elements with the contenteditable attribute support innerHTML and textContent bindings. | ||
*/ | ||
innerhtml?: string; | ||
innerHTML?: string; | ||
// Doesn't work when used as HTML attribute | ||
/** | ||
* Elements with the contenteditable attribute support innerHTML and textContent bindings. | ||
*/ | ||
textcontent?: string; | ||
textContent?: string; | ||
contextmenu?: string; | ||
@@ -362,2 +365,5 @@ controls?: boolean; | ||
value?: string | string[] | number; | ||
/** | ||
* a value between 0 and 1 | ||
*/ | ||
volume?: number; | ||
@@ -718,5 +724,42 @@ width?: number | string; | ||
interface SapperAnchorProps { | ||
// transformed from sapper:noscroll so it should be camel case | ||
sapperNoscroll?: true; | ||
} | ||
interface SvelteMediaTimeRange { | ||
start: number; | ||
end: number; | ||
} | ||
interface SvelteMediaProps { | ||
readonly duration?: number; | ||
readonly buffered?: SvelteMediaTimeRange[]; | ||
readonly played?: SvelteMediaTimeRange[]; | ||
readonly seekable?: SvelteMediaTimeRange[]; | ||
readonly seeking?: boolean; | ||
readonly ended?: boolean; | ||
/** | ||
* the current playback time in the video, in seconds | ||
*/ | ||
currentTime?: number; | ||
/** | ||
* the current playback time in the video, in seconds | ||
*/ | ||
currenttime?: number; | ||
// Doesn't work when used as HTML Attribute | ||
/** | ||
* how fast or slow to play the video, where 1 is 'normal' | ||
*/ | ||
playbackRate?: number; | ||
paused?: boolean; | ||
} | ||
interface SvelteVideoProps extends SvelteMediaProps { | ||
// Binding only, don't need lowercase variant | ||
readonly videoWidth?: number; | ||
readonly videoHeight?: number; | ||
} | ||
interface IntrinsicElements { | ||
@@ -730,3 +773,3 @@ // HTML | ||
aside: HTMLProps<HTMLElement>; | ||
audio: HTMLProps<HTMLAudioElement>; | ||
audio: HTMLProps<HTMLAudioElement> & SvelteMediaProps; | ||
b: HTMLProps<HTMLElement>; | ||
@@ -837,3 +880,3 @@ base: HTMLProps<HTMLBaseElement>; | ||
var: HTMLProps<HTMLElement>; | ||
video: HTMLProps<HTMLVideoElement>; | ||
video: HTMLProps<HTMLVideoElement> & SvelteVideoProps; | ||
wbr: HTMLProps<HTMLElement>; | ||
@@ -840,0 +883,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
296107
7505