@tanstack/svelte-table
Advanced tools
Comparing version 9.0.0-alpha.4 to 9.0.0-alpha.5
@@ -1,2 +0,2 @@ | ||
import type { SvelteComponent, ComponentType, ComponentProps } from 'svelte'; | ||
import type { Component, ComponentProps } from 'svelte'; | ||
/** | ||
@@ -11,6 +11,6 @@ * A helper class to make it easy to identify Svelte components in `columnDef.cell` and `columnDef.header` properties. | ||
* */ | ||
export declare class RenderComponentConfig<TComponent extends SvelteComponent> { | ||
component: ComponentType<TComponent>; | ||
props: ComponentProps<TComponent> | Record<string, never>; | ||
constructor(component: ComponentType<TComponent>, props?: ComponentProps<TComponent> | Record<string, never>); | ||
export declare class RenderComponentConfig<TComponent extends Component<any>> { | ||
component: TComponent; | ||
props: ComponentProps<TComponent>; | ||
constructor(component: TComponent, props: ComponentProps<TComponent>); | ||
} | ||
@@ -36,2 +36,2 @@ /** | ||
*/ | ||
export declare const renderComponent: <TComponent extends SvelteComponent<any, any, any>>(component: ComponentType<TComponent>, props: ComponentProps<TComponent>) => RenderComponentConfig<TComponent>; | ||
export declare const renderComponent: <TComponent extends Component<any, {}, string>>(component: TComponent, props: ComponentProps<TComponent>) => RenderComponentConfig<TComponent>; |
@@ -11,3 +11,3 @@ /** | ||
export class RenderComponentConfig { | ||
constructor(component, props = {}) { | ||
constructor(component, props) { | ||
this.component = component; | ||
@@ -14,0 +14,0 @@ this.props = props; |
{ | ||
"name": "@tanstack/svelte-table", | ||
"version": "9.0.0-alpha.4", | ||
"version": "9.0.0-alpha.5", | ||
"description": "Headless UI for building powerful tables & datagrids for Svelte.", | ||
@@ -46,6 +46,6 @@ "author": "Tanner Linsley", | ||
"devDependencies": { | ||
"@sveltejs/package": "^2.3.1", | ||
"@sveltejs/package": "^2.3.2", | ||
"@sveltejs/vite-plugin-svelte": "^4.0.0-next", | ||
"svelte": "^5.0.0-next", | ||
"svelte-check": "^3.7.0" | ||
"svelte-check": "^3.8.0" | ||
}, | ||
@@ -52,0 +52,0 @@ "peerDependencies": { |
@@ -1,2 +0,2 @@ | ||
import type { SvelteComponent, ComponentType, ComponentProps } from 'svelte' | ||
import type { Component, ComponentProps } from 'svelte' | ||
@@ -12,6 +12,6 @@ /** | ||
* */ | ||
export class RenderComponentConfig<TComponent extends SvelteComponent> { | ||
export class RenderComponentConfig<TComponent extends Component<any>> { | ||
constructor( | ||
public component: ComponentType<TComponent>, | ||
public props: ComponentProps<TComponent> | Record<string, never> = {} | ||
public component: TComponent, | ||
public props: ComponentProps<TComponent> | ||
) {} | ||
@@ -39,5 +39,5 @@ } | ||
*/ | ||
export const renderComponent = <TComponent extends SvelteComponent>( | ||
component: ComponentType<TComponent>, | ||
export const renderComponent = <TComponent extends Component<any>>( | ||
component: TComponent, | ||
props: ComponentProps<TComponent> | ||
) => new RenderComponentConfig(component, props) |
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
18380