Skip to content

Commit

Permalink
fix: wrong union type
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema committed Jul 4, 2024
1 parent 3715d17 commit e724106
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-schools-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tokens-studio/types': patch
---

Fix wrong union type, should be `|` and not `&`.
8 changes: 4 additions & 4 deletions src/types/tokens/SingleGenericToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { ColorModifier } from '../Modifier.js';
type _SingleGenericToken<T, V, Named, P> = {
type?: T;
$type?: T;
value?: V & string; // & string because token value can always be a reference!
$value?: V & string;
rawValue?: V & string;
value?: V | string; // | string because token value can always be a reference!
$value?: V | string;
rawValue?: V | string;
description?: string;
$description?: string;
oldDescription?: string;
oldValue?: V & string;
oldValue?: V | string;
internal__Parent?: string;
inheritTypeLevel?: number;
$extensions?: {
Expand Down

0 comments on commit e724106

Please sign in to comment.