Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Typescript] userDefinedFunction #1467

Closed
leqwasd opened this issue May 25, 2022 · 1 comment
Closed

[Typescript] userDefinedFunction #1467

leqwasd opened this issue May 25, 2022 · 1 comment

Comments

@leqwasd
Copy link
Contributor

leqwasd commented May 25, 2022

Typings for userDefinedFunction (used in alasql.fn.<fnName> = <here>)

should be

	interface userDefinedFunction {
-		(x: any): any;
+		(...x: any[]): any;
	}

It still doesn't provide any strong typings, but it would allow multiple arguments for a function.

@mathiasrw
Copy link
Member

Released as part of v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants