svelte2tsx
Advanced tools
Comparing version 0.5.20 to 0.5.21
{ | ||
"name": "svelte2tsx", | ||
"version": "0.5.20", | ||
"version": "0.5.21", | ||
"description": "Convert Svelte components to TSX for type checking", | ||
@@ -40,3 +40,3 @@ "author": "David Pershouse", | ||
"tslib": "^1.10.0", | ||
"typescript": "^4.8.2" | ||
"typescript": "^4.9.3" | ||
}, | ||
@@ -43,0 +43,0 @@ "peerDependencies": { |
@@ -105,3 +105,3 @@ // Whenever a ambient declaration changes, its number should be increased | ||
type SvelteAllProps = { [index: string]: any } | ||
type SveltePropsAnyFallback<Props> = {[K in keyof Props]: Props[K] extends undefined ? any : Props[K]} | ||
type SveltePropsAnyFallback<Props> = {[K in keyof Props]: Props[K] extends never ? never : Props[K] extends undefined ? any : Props[K]} | ||
type SvelteSlotsAnyFallback<Slots> = {[K in keyof Slots]: {[S in keyof Slots[K]]: Slots[K][S] extends undefined ? any : Slots[K][S]}} | ||
@@ -302,4 +302,4 @@ type SvelteRestProps = { [index: string]: any } | ||
declare type ConstructorOfATypedSvelteComponent = new (args: {target: any, props?: any}) => ATypedSvelteComponent | ||
declare function __sveltets_2_ensureComponent<T extends ConstructorOfATypedSvelteComponent>(type: T): T; | ||
declare function __sveltets_2_ensureComponent<T extends ConstructorOfATypedSvelteComponent | null | undefined>(type: T): NonNullable<T>; | ||
declare function __sveltets_2_ensureArray<T extends ArrayLike<unknown>>(array: T): T extends ArrayLike<infer U> ? U[] : any[]; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
739240
17338