Skip to content

Commit

Permalink
fix(refactoring): Changed lambda to function.
Browse files Browse the repository at this point in the history
  • Loading branch information
GaburakMykhailo committed Feb 5, 2018
1 parent ba67d07 commit 9364255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/classToFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @private
*/
export default function classToFunction<F extends Function>(cls: F): () => F {
return ((...args: any[]): any => {
return function(...args: any[]): any {
return new (cls as any)(...args)
}) as any
} as any
}

0 comments on commit 9364255

Please sign in to comment.