Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit b6f1f48

Browse files
committed
Include module in Flow declaration
Fixes an error importing the class. `import DetailsDialogElement from '@github/details-dialog-element` > Error: Importing from an untyped module makes it `any` and is not safe!
1 parent 85d2847 commit b6f1f48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js.flow

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* @flow strict */
22

3-
declare class DetailsDialogElement extends HTMLElement {
4-
toggle(open: boolean): void;
3+
declare module '@github/details-dialog-element' {
4+
declare export default class DetailsDialogElement extends HTMLElement {
5+
toggle(open: boolean): void;
6+
}
57
}

0 commit comments

Comments
 (0)