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

@ -20,7 +20,7 @@ export default function getSlug({
baseID: string;
frontmatterSlug?: string;
dirName: string;
}) {
}): string {
const baseSlug: string = frontmatterSlug || baseID;
let slug: string;
if (baseSlug.startsWith('/')) {