mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Change allowed return type of Ember helper function to any (#25183)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
0a74c04ab8
commit
841c9f9a0b
2
types/ember/index.d.ts
vendored
2
types/ember/index.d.ts
vendored
@@ -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' {
|
||||
|
||||
@@ -33,3 +33,9 @@ function typedHelp(/*params, hash*/) {
|
||||
}
|
||||
|
||||
export default helper(typedHelp);
|
||||
|
||||
function arrayNumHelp(/*params, hash*/) {
|
||||
return [1, 2, 3];
|
||||
}
|
||||
|
||||
helper(arrayNumHelp);
|
||||
|
||||
Reference in New Issue
Block a user