Skip to content

Commit a331210

Browse files
committed
fix: types
1 parent f1ea117 commit a331210

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "svelte-floating-ui",
33
"description": "Svelte actions for working with floating ui",
4-
"version": "1.5.4",
4+
"version": "1.5.5",
55
"license": "MIT",
66
"main": "./index.js",
77
"types": "./index.d.ts",

src/lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type ComputeConfig = Partial<ComputePositionConfig> & {
2020
export type UpdatePosition = (contentOptions?: Omit<ComputeConfig, 'autoUpdate'>) => void;
2121
export type ReferenceAction = (node: HTMLElement | Writable<VirtualElement> | VirtualElement) => void;
2222
export type ContentAction = (node: HTMLElement, contentOptions?: ComputeConfig) => void;
23-
export type ArrowOptions = { padding?: Padding, element: Writable<HTMLElement> };
23+
export type ArrowOptions = { padding?: Padding, element: Writable<HTMLElement | undefined | null> };
2424

2525
export function createFloatingActions(initOptions?: ComputeConfig): [ReferenceAction, ContentAction, UpdatePosition] {
2626
let referenceElement: ReferenceElement;

0 commit comments

Comments
 (0)