diff options
Diffstat (limited to 'packages/react-docs/src/utils/utils.ts')
-rw-r--r-- | packages/react-docs/src/utils/utils.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/react-docs/src/utils/utils.ts b/packages/react-docs/src/utils/utils.ts new file mode 100644 index 000000000..f8c1fefff --- /dev/null +++ b/packages/react-docs/src/utils/utils.ts @@ -0,0 +1,5 @@ +export const utils = { + spawnSwitchErr(name: string, value: any) { + return new Error(`Unexpected switch value: ${value} encountered for ${name}`); + }, +}; |