aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src/ts/utils/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/react-docs/src/ts/utils/utils.ts')
-rw-r--r--packages/react-docs/src/ts/utils/utils.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/react-docs/src/ts/utils/utils.ts b/packages/react-docs/src/ts/utils/utils.ts
new file mode 100644
index 000000000..8e1a80a44
--- /dev/null
+++ b/packages/react-docs/src/ts/utils/utils.ts
@@ -0,0 +1,10 @@
+export const utils = {
+ consoleLog(message: string) {
+ /* tslint:disable */
+ console.log(message);
+ /* tslint:enable */
+ },
+ spawnSwitchErr(name: string, value: any) {
+ return new Error(`Unexpected switch value: ${value} encountered for ${name}`);
+ },
+};