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 support #192

Open
lazarljubenovic opened this issue Aug 11, 2018 · 4 comments
Open

TypeScript support #192

lazarljubenovic opened this issue Aug 11, 2018 · 4 comments

Comments

@lazarljubenovic
Copy link

Are there any plans to add type definitions to this module so it can be used with TypeScript?

@mrdulin
Copy link

mrdulin commented Nov 7, 2018

+1

1 similar comment
@marcelorubim
Copy link

+1

@ffflorian
Copy link

I created a PR on DefinitelyTyped: DefinitelyTyped/DefinitelyTyped#51247

@tafaust
Copy link

tafaust commented Sep 15, 2023

I created a PR on DefinitelyTyped: DefinitelyTyped/DefinitelyTyped#51247

These types don't work for nested Properties. I had to modify RevalidatorSchema like so:

type RevalidatorSchema = Partial<Revalidator.ISchema<any> & Schema>;

interface Properties {
  [name: string]: RevalidatorSchema | string;
}
interface Schema {
  properties: Properties;
}

How do you people handle the types for the GetCallback? It seems cumbersome to have my internal objects as a supertype of Properties.

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

5 participants