Skip to content

Commit

Permalink
chore: make value & props optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema committed Jan 11, 2024
1 parent cfb06d6 commit 2eb2e2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions __tests__/formats/__snapshots__/all.test.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ snapshots["formats all should match typescript/module-declarations snapshot"] =
export default tokens;
declare interface DesignToken {
value: any;
$value: any;
value?: any;
$value?: any;
name?: string;
comment?: string;
themeable?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions lib/common/formats.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,8 @@ const formats = {

// TODO: find a browser+node compatible way to read from '../../types/DesignToken.d.ts'
const designTokenInterface = `interface DesignToken {
value: any;
$value: any;
value?: any;
$value?: any;
name?: string;
comment?: string;
themeable?: boolean;
Expand Down
3 changes: 2 additions & 1 deletion types/DesignToken.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
* Make sure to also change it there when this type changes!
*/
export interface DesignToken {
value: any;
value?: any;
$value?: any;
name?: string;
comment?: string;
themeable?: boolean;
Expand Down

0 comments on commit 2eb2e2e

Please sign in to comment.