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

optional namespace #24

Merged
merged 4 commits into from
Dec 2, 2024
Merged

optional namespace #24

merged 4 commits into from
Dec 2, 2024

Conversation

ianmacartney
Copy link
Contributor

Make the Namespace type parameter optional, and when it isn't specified,
the namespace function is also optional (or has to return undefined).

One pro user already wrote in about this.options.namespace is not a function so I figure let's make it more forgiving when namespaces aren't being used


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ianmacartney ianmacartney requested a review from ldanilek December 2, 2024 05:18
Copy link
Collaborator

@ldanilek ldanilek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error would only happen if they skip typechecking, right? Sounds good to me

@ianmacartney ianmacartney merged commit e956059 into main Dec 2, 2024
1 check passed
@ianmacartney ianmacartney deleted the ian/optional-namespace branch December 2, 2024 06:24
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

Successfully merging this pull request may close these issues.

2 participants