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

Branded type helpers #2263

Closed
bmingles opened this issue Oct 22, 2024 · 0 comments · Fixed by #2264
Closed

Branded type helpers #2263

bmingles opened this issue Oct 22, 2024 · 0 comments · Fixed by #2264
Assignees
Labels
enhancement New feature or request

Comments

@bmingles
Copy link
Contributor

Move branded type helpers from deephaven-vscode into @deephaven/utils so they can be used in DHC + DHE.

// Branded type helpers
declare const __brand: unique symbol;
export type Brand<T extends string, TBase = string> = TBase & {
  readonly [__brand]: T;
};
@bmingles bmingles added enhancement New feature or request triage Issue requires triage and removed triage Issue requires triage labels Oct 22, 2024
@bmingles bmingles self-assigned this Oct 22, 2024
@bmingles bmingles linked a pull request Oct 22, 2024 that will close this issue
bmingles added a commit that referenced this issue Oct 22, 2024
Copying branded type utils from `vscode-deephaven` to @deephaven/utils
for broader usage.
#2263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant