Skip to content

Commit 5b5ee9f

Browse files
author
arnoson
committed
fix: return correct type
1 parent d80660b commit 5b5ee9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/registerComponent.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export const getComponent = (el: HTMLElement) => {
1010
return name ? components[name] : undefined
1111
}
1212

13-
export const defineOptions = (options: SimpleComponentOptions) => options
13+
export const defineOptions = <Options extends SimpleComponentOptions>(
14+
options: Options
15+
) => options
1416

1517
export function registerComponent<
1618
Setup extends SimpleComponentSetup<Options>,

0 commit comments

Comments
 (0)