Skip to content

feat: user-defined required constructor options #63

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

Merged
merged 12 commits into from
Jul 20, 2021
Merged
Prev Previous commit
Next Next commit
Update examples/required-options/index.test-d.ts
  • Loading branch information
gr2m authored Jul 20, 2021
commit 8ee38c8590c09e6346d5f48cdfb1d1086d4efe93
6 changes: 6 additions & 0 deletions examples/required-options/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ new MyBase({});
new MyBase({
myRequiredUserOption: "",
});

const MyBaseWithDefaults = MyBase.defaults({
myRequiredUserOption: "",
});

new MyBaseWithDefaults();