diff --git a/docs/workflows/faq.md b/docs/workflows/faq.md index 05885a37c38..b0f07129025 100644 --- a/docs/workflows/faq.md +++ b/docs/workflows/faq.md @@ -366,7 +366,7 @@ This works because Babel replaces `process.env.STORYBOOK` with the value of the the following will **NOT** work: ```javascript -export function isRunningInStorybook(): boolean { +export function isRunningInStorybook() { return typeof process?.env?.STORYBOOK !== 'undefined'; // ReferenceError: process is not defined }