Skip to content

Commit 7c31865

Browse files
test(function): treat as any
1 parent ce768ae commit 7c31865

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/testing/variables/function.const.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@ import { Func } from '../../type/func.type';
44
* instanceof Function === true
55
* instanceof Object === true
66
*/
7-
export const FUNCTION: Func = (x: number, y: string): any => x + y;
7+
export const FUNCTION: any = (x: number, y: string): any => x + y;
8+
9+
export function functionConstructor(this: any, ...args: any[]): any {
10+
if (args) {
11+
args.forEach((arg, index: number) => this[index] = arg[index]);
12+
}
13+
return this;
14+
}

0 commit comments

Comments
 (0)