fix(*): make TypeScript realize that each plugin package has a default export (#7294)

This commit is contained in:
Joshua Chen 2022-05-03 18:23:34 +08:00 committed by GitHub
parent b49ae67521
commit a2c993bf9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
43 changed files with 208 additions and 187 deletions

View file

@ -22,7 +22,7 @@ import {
import type {LoadContext} from '@docusaurus/types';
import {getFileLastUpdate} from './lastUpdate';
import type {DocFile, LoadedVersion} from './types';
import type {DocFile} from './types';
import getSlug from './slug';
import {CURRENT_VERSION_NAME} from './constants';
import {stripPathNumberPrefixes} from './numberPrefix';
@ -39,6 +39,7 @@ import type {
LastUpdateData,
VersionMetadata,
DocFrontMatter,
LoadedVersion,
} from '@docusaurus/plugin-content-docs';
type LastUpdateOptions = Pick<