@slidev/types 0.47.2 → 0.47.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +4 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -389,8 +389,8 @@ interface SlidevMarkdown {
|
|
|
389
389
|
}
|
|
390
390
|
interface SlidevPreparserExtension {
|
|
391
391
|
name: string;
|
|
392
|
-
transformRawLines
|
|
393
|
-
transformSlide
|
|
392
|
+
transformRawLines?: (lines: string[]) => Promise<void> | void;
|
|
393
|
+
transformSlide?: (content: string, frontmatter: any) => Promise<string | undefined>;
|
|
394
394
|
}
|
|
395
395
|
type PreparserExtensionLoader = (headmatter?: Record<string, unknown>, filepath?: string) => Promise<SlidevPreparserExtension[]>;
|
|
396
396
|
type PreparserExtensionFromHeadmatter = (headmatter: any, exts: SlidevPreparserExtension[], filepath?: string) => Promise<SlidevPreparserExtension[]>;
|
|
@@ -435,10 +435,10 @@ interface ShikiContext {
|
|
|
435
435
|
* @deprecated Pass directly the theme name it's supported by Shiki.
|
|
436
436
|
* For custom themes, load it manually via `JSON.parse(fs.readFileSync(path, 'utf-8'))` and pass the raw JSON object instead.
|
|
437
437
|
*/
|
|
438
|
-
loadTheme(path: string)
|
|
438
|
+
loadTheme: (path: string) => Promise<any>;
|
|
439
439
|
}
|
|
440
440
|
type ShikiSetupReturn = Partial<CodeToHastOptions> & {
|
|
441
|
-
setup
|
|
441
|
+
setup?: (highlighter: Highlighter) => Awaitable<void>;
|
|
442
442
|
};
|
|
443
443
|
type ShikiSetup = (shiki: ShikiContext) => Awaitable<ShikiSetupReturn | void>;
|
|
444
444
|
type KatexSetup = () => Awaitable<Partial<KatexOptions> | void>;
|