Skip to content

Commit ad0caa5

Browse files
Rubi Sarfaticatc
Rubi Sarfati
authored andcommitted
typescript eror message JSDoc types can only be used inside documentation comments
1 parent 1cf556b commit ad0caa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/displace.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ declare module 'displacejs' {
44

55
type DisplaceJSObject = {
66
// Runs setup again. Useful when divs have been moved or resized.
7-
reinit: function(): void,
7+
reinit: () => void
88
// Removes event listeners and destroys instance.
9-
destroy: function(): void
9+
destroy: () => void
1010
};
1111

1212
type DisplaceJSOptions = {

0 commit comments

Comments
 (0)