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

Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 76e6600

Browse files
danielbodartnchanged
authored andcommitted
fix: #1101 types missing because of using bind (#1104)
See [https://basarat.gitbooks.io/typescript/docs/tips/bind.html] for more details closes #1101
1 parent 8f34f46 commit 76e6600

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/sparky/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Sparky } from './Sparky';
22
import { SparkyContext } from './SparkyContext';
33

44
export { npmPublish, tsc, bumpVersion } from './SparkyUtils';
5-
export const src = Sparky.src.bind(Sparky);
6-
export const watch = Sparky.watch.bind(Sparky);
7-
export const task = Sparky.task.bind(Sparky);
8-
export const context = SparkyContext.bind(Sparky);
9-
export const exec = Sparky.exec.bind(Sparky);
10-
export const init = Sparky.init.bind(Sparky);
11-
export const fuse = Sparky.fuse.bind(Sparky);
5+
export const src: typeof Sparky.src = Sparky.src.bind(Sparky);
6+
export const watch: typeof Sparky.watch = Sparky.watch.bind(Sparky);
7+
export const task: typeof Sparky.task = Sparky.task.bind(Sparky);
8+
export const context: typeof SparkyContext = SparkyContext.bind(Sparky);
9+
export const exec: typeof Sparky.exec = Sparky.exec.bind(Sparky);
10+
export const init: typeof Sparky.init = Sparky.init.bind(Sparky);
11+
export const fuse: typeof Sparky.fuse = Sparky.fuse.bind(Sparky);

0 commit comments

Comments
 (0)