FBI-451: clean up

This commit is contained in:
Rishi Tank 2023-06-14 16:02:08 +01:00
parent 8e56a3b125
commit f29b7aeb08
No known key found for this signature in database
GPG Key ID: BF025217B93532E7
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,4 @@
export const CODE_SAMPLE_LANGUAGES = {
JSON: 'json',
XML: 'xml',
} as const;

View File

@ -5,8 +5,9 @@ import { isArray, isNumeric, mergeObjects } from '../utils/helpers';
import { setRedocLabels } from './Labels';
import { SideNavStyleEnum } from './types';
import type { LabelsConfigRaw, MDXComponentMeta } from './types';
import { CODE_SAMPLE_LANGUAGES } from '../constants/languages';
export type CodeSamplesLanguage = 'json' | 'xml';
export type CodeSamplesLanguage = typeof CODE_SAMPLE_LANGUAGES[keyof typeof CODE_SAMPLE_LANGUAGES];
export interface RedocRawOptions {
theme?: ThemeInterface;