@slidev/types 0.34.2 → 0.35.1

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.ts +4 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -337,6 +337,8 @@ interface NavOperations {
337
337
  nextSlide: () => void;
338
338
  prevSlide: () => Promise<void>;
339
339
  go: (index: number) => void;
340
+ goFirst: () => void;
341
+ goLast: () => void;
340
342
  downloadPDF: () => Promise<void>;
341
343
  toggleDark: () => void;
342
344
  toggleOverview: () => void;
@@ -348,6 +350,7 @@ interface ShortcutOptions {
348
350
  key: string | Ref<boolean>;
349
351
  fn?: () => void;
350
352
  autoRepeat?: boolean;
353
+ name?: string;
351
354
  }
352
355
  declare type ShikiSetup = (shiki: typeof Shiki) => Awaitable<ShikiOptions | undefined>;
353
356
  declare type KatexSetup = () => Awaitable<Partial<KatexOptions> | undefined>;
@@ -356,7 +359,7 @@ declare type UnoSetup = () => Awaitable<Partial<VitePluginConfig> | undefined>;
356
359
  declare type MonacoSetup = (m: typeof monaco) => Awaitable<MonacoSetupReturn>;
357
360
  declare type AppSetup = (context: AppContext) => Awaitable<void>;
358
361
  declare type MermaidSetup = () => Partial<MermaidOptions> | undefined;
359
- declare type ShortcutsSetup = (nav: NavOperations) => Array<ShortcutOptions>;
362
+ declare type ShortcutsSetup = (nav: NavOperations, defaultShortcuts: ShortcutOptions[]) => Array<ShortcutOptions>;
360
363
  declare function defineShikiSetup(fn: ShikiSetup): ShikiSetup;
361
364
  declare function defineWindiSetup(fn: WindiSetup): WindiSetup;
362
365
  declare function defineUnoSetup(fn: UnoSetup): UnoSetup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/types",
3
- "version": "0.34.2",
3
+ "version": "0.35.1",
4
4
  "description": "Shared types declerations for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",