aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src/ts/utils/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/react-docs/src/ts/utils/constants.ts')
-rw-r--r--packages/react-docs/src/ts/utils/constants.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/react-docs/src/ts/utils/constants.ts b/packages/react-docs/src/ts/utils/constants.ts
new file mode 100644
index 000000000..c3c74fd11
--- /dev/null
+++ b/packages/react-docs/src/ts/utils/constants.ts
@@ -0,0 +1,9 @@
+import { SupportedDocJson } from '../types';
+
+export const constants = {
+ TYPES_SECTION_NAME: 'types',
+ TYPE_TO_SYNTAX: {
+ [SupportedDocJson.Doxity]: 'solidity',
+ [SupportedDocJson.TypeDoc]: 'typescript',
+ } as { [supportedDocType: string]: string },
+};