Skip to content

Remove required version option, implement required constructor options dynamically based on Base.Options interface #60

Closed
@gr2m

Description

@gr2m

This is a follow up to #57 (comment)

I think what I'd suggest we do is to add a new use-cases folder, and in that folder create required-options with index.js, index.d.ts and index.test-d.ts files.

In /use-cases/required-options/index.d.ts we would define a required option by extending the Base.Options interface and then add tests to index.test-d.ts to make sure the types work correctly with the new Base(options) constructor and with .defaults(options) calls

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions