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 fda6cf0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"test:browser:coverage": "cd coverage/lcov-report && npx http-server -o -c-1",
"test:browser:watch": "web-test-runner --watch",
"test:browser:update-snapshots": "web-test-runner --update-snapshots",
"test:node": "mocha -r mocha-hooks.mjs './__integration__/logging/file.test.js' './__tests__/**/*.test.js' './__node_tests__/**/*.test.js'",
"test:node": "mocha -r mocha-hooks.mjs './__integration__/**/*.test.js' './__tests__/**/*.test.js' './__node_tests__/**/*.test.js'",
"serve-docs": "docsify serve docs -p 3000 -P 12345",
"install-cli": "npm install -g $(npm pack)",
"release": "node scripts/inject-version.js && tsc --emitDeclarationOnly && changeset publish",
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 fda6cf0

Please sign in to comment.