@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.
Files changed (2) hide show
  1. package/dist/index.d.mts +4 -4
  2. 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?(lines: string[]): Promise<void> | void;
393
- transformSlide?(content: string, frontmatter: any): Promise<string | undefined>;
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): Promise<any>;
438
+ loadTheme: (path: string) => Promise<any>;
439
439
  }
440
440
  type ShikiSetupReturn = Partial<CodeToHastOptions> & {
441
- setup?(highlighter: Highlighter): Awaitable<void>;
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/types",
3
- "version": "0.47.2",
3
+ "version": "0.47.3",
4
4
  "description": "Shared types declarations for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",