diff options
author | philippe-perrin-sonarsource <philippe.perrin@sonarsource.com> | 2022-01-27 11:06:59 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-01-27 20:03:05 +0000 |
commit | dca8354af94e9feb46ea2312857e000aaa232372 (patch) | |
tree | 336b645749ab1fb1b1abdac19a69c70257e98b68 /server/sonar-web/src/main/js/apps/documentation/pages.ts | |
parent | 85f744be340d8f404978341186dd77cc05584f31 (diff) | |
download | sonarqube-dca8354af94e9feb46ea2312857e000aaa232372.tar.gz sonarqube-dca8354af94e9feb46ea2312857e000aaa232372.zip |
SONAR-15945 Get rid of T namespace in sonar-web
Diffstat (limited to 'server/sonar-web/src/main/js/apps/documentation/pages.ts')
-rw-r--r-- | server/sonar-web/src/main/js/apps/documentation/pages.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/documentation/pages.ts b/server/sonar-web/src/main/js/apps/documentation/pages.ts index 47a77d52f74..be10bbc1312 100644 --- a/server/sonar-web/src/main/js/apps/documentation/pages.ts +++ b/server/sonar-web/src/main/js/apps/documentation/pages.ts @@ -20,12 +20,11 @@ import remark from 'remark'; import visit from 'unist-util-visit'; import { filterContent, ParsedContent, separateFrontMatter } from '../../helpers/markdown'; +import { Dict } from '../../types/types'; import Docs from './documentation.directory-loader'; import { DocumentationEntry, DocumentationEntryScope } from './utils'; -export default function getPages( - parsedOverrides: T.Dict<ParsedContent> = {} -): DocumentationEntry[] { +export default function getPages(parsedOverrides: Dict<ParsedContent> = {}): DocumentationEntry[] { // Get entries, merge with overrides if applicable. const pages = ((Docs as unknown) as Array<{ content: string; path: string }>).map(file => { let parsed = separateFrontMatter(file.content); |