We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f51a46 commit 1842fb5Copy full SHA for 1842fb5
package.json
@@ -51,6 +51,7 @@
51
"bugs": "https://github.com/preactjs/preact-custom-element/issues",
52
"homepage": "https://github.com/preactjs/preact-custom-element",
53
"files": [
54
+ "src",
55
"dist",
56
"LICENSE",
57
"package.json",
src/index.d.ts
@@ -11,7 +11,7 @@ type Options = {
11
shadow: false;
12
} | {
13
shadow: true;
14
- mode: 'open' | 'closed';
+ mode?: 'open' | 'closed';
15
};
16
17
/**
@@ -44,7 +44,7 @@ type Options = {
44
*/
45
export default function register(
46
Component: AnyComponent,
47
- tagName: string,
+ tagName?: string,
48
propNames?: string[],
49
options?: Options,
50
): void;
0 commit comments