mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
fix(*): make TypeScript realize that each plugin package has a default export (#7294)
This commit is contained in:
parent
b49ae67521
commit
a2c993bf9a
43 changed files with 208 additions and 187 deletions
|
@ -9,13 +9,7 @@ import fs from 'fs-extra';
|
|||
import path from 'path';
|
||||
import readingTime from 'reading-time';
|
||||
import _ from 'lodash';
|
||||
import type {
|
||||
BlogPost,
|
||||
BlogContentPaths,
|
||||
BlogMarkdownLoaderOptions,
|
||||
BlogTags,
|
||||
BlogPaginated,
|
||||
} from './types';
|
||||
import type {BlogContentPaths, BlogMarkdownLoaderOptions} from './types';
|
||||
import {
|
||||
parseMarkdownString,
|
||||
normalizeUrl,
|
||||
|
@ -37,6 +31,9 @@ import logger from '@docusaurus/logger';
|
|||
import type {
|
||||
PluginOptions,
|
||||
ReadingTimeFunction,
|
||||
BlogPost,
|
||||
BlogTags,
|
||||
BlogPaginated,
|
||||
} from '@docusaurus/plugin-content-blog';
|
||||
|
||||
export function truncate(fileString: string, truncateMarker: RegExp): string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue