@slidev/types 0.35.0 → 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 +2 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -350,6 +350,7 @@ interface ShortcutOptions {
350
350
  key: string | Ref<boolean>;
351
351
  fn?: () => void;
352
352
  autoRepeat?: boolean;
353
+ name?: string;
353
354
  }
354
355
  declare type ShikiSetup = (shiki: typeof Shiki) => Awaitable<ShikiOptions | undefined>;
355
356
  declare type KatexSetup = () => Awaitable<Partial<KatexOptions> | undefined>;
@@ -358,7 +359,7 @@ declare type UnoSetup = () => Awaitable<Partial<VitePluginConfig> | undefined>;
358
359
  declare type MonacoSetup = (m: typeof monaco) => Awaitable<MonacoSetupReturn>;
359
360
  declare type AppSetup = (context: AppContext) => Awaitable<void>;
360
361
  declare type MermaidSetup = () => Partial<MermaidOptions> | undefined;
361
- declare type ShortcutsSetup = (nav: NavOperations) => Array<ShortcutOptions>;
362
+ declare type ShortcutsSetup = (nav: NavOperations, defaultShortcuts: ShortcutOptions[]) => Array<ShortcutOptions>;
362
363
  declare function defineShikiSetup(fn: ShikiSetup): ShikiSetup;
363
364
  declare function defineWindiSetup(fn: WindiSetup): WindiSetup;
364
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.35.0",
3
+ "version": "0.35.1",
4
4
  "description": "Shared types declerations for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",