Skip to content

Potential TS enhancement? #122

@ineshbose

Description

@ineshbose

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions