@slidev/types 0.35.0 → 0.35.4
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.ts +2 -1
- 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;
|