Change allowed return type of Ember helper function to any (#25183)

This commit is contained in:
James C. Davis
2018-04-20 18:04:36 -04:00
committed by Ryan Cavanaugh
parent 0a74c04ab8
commit 841c9f9a0b
2 changed files with 7 additions and 1 deletions

View File

@@ -3461,7 +3461,7 @@ declare module '@ember/component/helper' {
* });
* ```
*/
export function helper(helperFn: (params: any[], hash?: any) => string): any;
export function helper(helperFn: (params: any[], hash?: any) => any): any;
}
declare module '@ember/component/text-area' {

View File

@@ -33,3 +33,9 @@ function typedHelp(/*params, hash*/) {
}
export default helper(typedHelp);
function arrayNumHelp(/*params, hash*/) {
return [1, 2, 3];
}
helper(arrayNumHelp);