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

Potential TS enhancement? #122

Open
ineshbose opened this issue Jan 17, 2024 · 0 comments
Open

Potential TS enhancement? #122

ineshbose opened this issue Jan 17, 2024 · 0 comments

Comments

@ineshbose
Copy link

Could we use a generic here-

export function defineUntypedSchema(options: SchemaDefinition) {

export function defineUntypedSchema<T extends SchemaDefinition>(options: T)

Otherwise I don't believe the return value to be strongly-typed; plus I may want to provide the generic explicitly and make sure that options corresponds to it (with appropriate $resolve functions, etc).

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

1 participant