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

How do I use it in typescript? #13

Open
Drincann opened this issue Aug 11, 2021 · 1 comment
Open

How do I use it in typescript? #13

Drincann opened this issue Aug 11, 2021 · 1 comment

Comments

@Drincann
Copy link

Is there a type declaration?

@iarna
Copy link
Owner

iarna commented Oct 16, 2021

I think, without testing, that it'd roughly be (I'm not too sure on the exporting of a type this way):

interface FuncValidate {
  (rawSchemas: string, args: any[])
}
export default FuncValidate

If you want to test that and PR it, I'd take it =)

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