Skip to content

Commit

Permalink
fix: fix typescript definition error TS7051
Browse files Browse the repository at this point in the history
closes #16
  • Loading branch information
3cp committed Feb 14, 2020
1 parent bf0486d commit e8f0942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ interface TargetOptions {
element?: Element;
}

type PreviewDrawer = (Element) => Element | void;
type PreviewDrawer = (element: Element) => Element | void;

export declare class DndService {
public readonly isProcessing: boolean;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@babel/preset-env": "^7.8.4",
"babel-eslint": "^10.0.3",
"babelify": "^10.0.0",
"browser-do": "^1.0.0",
"browserify": "^16.5.0",
"eslint": "^6.8.0",
"jquery": "^3.4.1",
Expand All @@ -33,8 +34,7 @@
"rollup-plugin-terser": "^5.2.0",
"standard-changelog": "^2.0.21",
"tap-dot": "^2.0.0",
"tape": "^4.13.0",
"browser-do": "^1.0.0"
"tape": "^4.13.0"
},
"scripts": {
"build": "env BABEL_ENV=development rollup -c",
Expand Down

0 comments on commit e8f0942

Please sign in to comment.