Skip to content

Commit 388b7a1

Browse files
committed
fix: expose correct typing
1 parent eec4306 commit 388b7a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { h, cloneElement, render, hydrate } from 'preact';
22

33
/**
44
* @typedef {import('preact').FunctionComponent<any> | import('preact').ComponentClass<any> | import('preact').FunctionalComponent<any> } ComponentDefinition
5-
* @typedef {{ shadow: false } | { shadow: true, mode: 'open' | 'closed'}} Options
5+
* @typedef {{ shadow: false } | { shadow: true, mode?: 'open' | 'closed' }} Options
66
* @typedef {HTMLElement & { _root: ShadowRoot | HTMLElement, _vdomComponent: ComponentDefinition, _vdom: ReturnType<typeof import("preact").h> | null }} PreactCustomElement
77
*/
88

0 commit comments

Comments
 (0)