bits-ui 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/// <reference types="svelte" />
|
|
2
2
|
import type { Action } from "svelte/action";
|
|
3
|
-
export type Builder = {
|
|
4
|
-
|
|
5
|
-
action: Action<HTMLElement, any, any>;
|
|
3
|
+
export type Builder<Element = any, Param = any, Attributes extends Record<string, any> = Record<string, any>> = Record<string, any> & {
|
|
4
|
+
action: Action<Element, Param, Attributes>;
|
|
6
5
|
};
|
|
7
6
|
type BuilderActionsParams = {
|
|
8
|
-
builders: Builder[];
|
|
7
|
+
builders: Builder<any, any, any>[];
|
|
9
8
|
};
|
|
10
9
|
type BuilderActionsReturn = {
|
|
11
10
|
destroy: () => void;
|
|
12
11
|
};
|
|
13
12
|
export declare function builderActions(node: HTMLElement, params: BuilderActionsParams): BuilderActionsReturn;
|
|
14
|
-
export declare function getAttrs(builders: Builder[]): Record<string, unknown>;
|
|
13
|
+
export declare function getAttrs(builders: Builder<any, any, any>[]): Record<string, unknown>;
|
|
15
14
|
export {};
|