Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8617661

Browse files
committed
Include module in Flow declaration
Fixes an error importing the class. `import ClipboardCopyElement from '@github/clipboard-copy-element` > Error: Importing from an untyped module makes it `any` and is not safe!
1 parent 530ff40 commit 8617661

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/clipboard-copy-element.js.flow

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* @flow strict */
22

3-
declare export default class ClipboardCopyElement extends HTMLElement {
4-
get value(): string;
5-
set value(value: string): void;
3+
declare module '@github/clipboard-copy-element' {
4+
declare export default class ClipboardCopyElement extends HTMLElement {
5+
get value(): string;
6+
set value(value: string): void;
7+
}
68
}

0 commit comments

Comments
 (0)