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

New asset pattern helper #801

Merged
merged 1 commit into from
Mar 20, 2024
Merged

New asset pattern helper #801

merged 1 commit into from
Mar 20, 2024

Conversation

grod220
Copy link
Collaborator

@grod220 grod220 commented Mar 20, 2024

A proposal for new class that assists in typing so we don't have to do the groups as unknown as GroupType pattern.

Comment on lines +109 to +110
// eslint-disable-next-line @typescript-eslint/no-confusing-void-expression
expect(matcher.capture('hello')).toBeUndefined();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Kinda nice the type system knows it shouldn't be calling something without capture groups

@grod220 grod220 merged commit e889b9a into main Mar 20, 2024
6 checks passed
@grod220 grod220 deleted the new-regex-class branch March 20, 2024 15:12
@grod220 grod220 self-assigned this Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants