feat(v2): Provide docs plugin typing (#3328)

This commit is contained in:
Sam Zhou 2020-08-27 05:40:14 -04:00 committed by GitHub
parent b86806460c
commit d299b99631
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 125 additions and 35 deletions

View file

@ -7,13 +7,15 @@
import {
LoadedVersion,
PropSidebars,
SidebarItemDoc,
SidebarItemLink,
PropVersionMetadata,
SidebarItem,
PropSidebarItem,
} from './types';
import {
PropSidebars,
PropVersionMetadata,
PropSidebarItem,
} from '@docusaurus/plugin-content-docs-types';
import {keyBy, mapValues} from 'lodash';
export function toSidebarsProp(loadedVersion: LoadedVersion): PropSidebars {