@slidev/types
Advanced tools
Comparing version 0.0.0-alpha.55 to 0.0.0-alpha.57
import { Awaitable } from '@antfu/utils'; | ||
import { Options } from 'markdown-it-shiki'; | ||
import { IThemeRegistration, ILanguageRegistration, Highlighter } from 'shiki'; | ||
import * as monaco from 'monaco-editor'; | ||
@@ -61,3 +61,12 @@ import { App } from 'vue'; | ||
} | ||
declare type ShikiSetup = () => Awaitable<Options | undefined>; | ||
interface ShikiDarkModeThemes { | ||
dark: IThemeRegistration; | ||
light: IThemeRegistration; | ||
} | ||
interface ShikiOptions { | ||
theme?: IThemeRegistration | ShikiDarkModeThemes; | ||
langs?: ILanguageRegistration[]; | ||
highlighter?: Highlighter; | ||
} | ||
declare type ShikiSetup = () => Awaitable<ShikiOptions | undefined>; | ||
declare type MonacoSetup = (m: typeof monaco) => Awaitable<void>; | ||
@@ -69,2 +78,2 @@ declare type AppSetup = (context: AppContext) => Awaitable<void>; | ||
export { AppContext, AppSetup, MonacoSetup, ShikiSetup, SlideInfo, SlideInfoExtended, SlidevConfig, SlidevMarkdown, defineAppSetup, defineMonacoSetup, defineShikiSetup }; | ||
export { AppContext, AppSetup, MonacoSetup, ShikiDarkModeThemes, ShikiOptions, ShikiSetup, SlideInfo, SlideInfoExtended, SlidevConfig, SlidevMarkdown, defineAppSetup, defineMonacoSetup, defineShikiSetup }; |
{ | ||
"name": "@slidev/types", | ||
"version": "0.0.0-alpha.55", | ||
"version": "0.0.0-alpha.57", | ||
"description": "Shared types declerations for Slidev", | ||
@@ -24,3 +24,6 @@ "license": "MIT", | ||
"@antfu/utils": "^0.1.4", | ||
"markdown-it-shiki": "^0.2.3" | ||
"monaco-editor": "^0.23.0", | ||
"shiki": "^0.9.3", | ||
"vue": "^3.0.11", | ||
"vue-router": "^4.0.6" | ||
}, | ||
@@ -27,0 +30,0 @@ "scripts": { |
4703
106
5