Skip to content

Commit 81e3f7c

Browse files
committed
fix(types): make accessToken optional in FigspecConfig
The accessToken can be provided via the STORYBOOK_FIGMA_ACCESS_TOKEN environment variable, so it should be optional in the type definition. Fixes #269
1 parent db5e98d commit 81e3f7c

File tree

1 file changed

+2
-1
lines changed
  • packages/storybook-addon-designs/src

1 file changed

+2
-1
lines changed

packages/storybook-addon-designs/src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ export interface FigspecConfig extends ConfigBase {
7474

7575
/**
7676
* Personal Access Token for your Figma account.
77+
* If not provided, the `STORYBOOK_FIGMA_ACCESS_TOKEN` environment variable must be set.
7778
*/
78-
accessToken: string;
79+
accessToken?: string;
7980
}
8081

8182
/**

0 commit comments

Comments
 (0)