Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 4, 2024
1 parent abd878f commit fea16a2
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 47 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -23,7 +23,7 @@
"test": "vitest test"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.3",
"@antfu/eslint-config": "^2.6.4",
"@antfu/ni": "^0.21.12",
"@antfu/utils": "^0.7.7",
"@shikijs/markdown-it": "1.0.0-beta.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/types/src/setups.ts
Expand Up @@ -51,11 +51,11 @@ export interface ShikiContext {
* @deprecated Pass directly the theme name it's supported by Shiki.
* For custom themes, load it manually via `JSON.parse(fs.readFileSync(path, 'utf-8'))` and pass the raw JSON object instead.
*/
loadTheme(path: string): Promise<any>
loadTheme: (path: string) => Promise<any>
}

export type ShikiSetupReturn = Partial<CodeToHastOptions> & {
setup?(highlighter: Highlighter): Awaitable<void>
setup?: (highlighter: Highlighter) => Awaitable<void>
}

// node side
Expand Down
4 changes: 2 additions & 2 deletions packages/types/src/types.ts
Expand Up @@ -62,8 +62,8 @@ export interface SlidevMarkdown {

export interface SlidevPreparserExtension {
name: string
transformRawLines?(lines: string[]): Promise<void> | void
transformSlide?(content: string, frontmatter: any): Promise<string | undefined>
transformRawLines?: (lines: string[]) => Promise<void> | void
transformSlide?: (content: string, frontmatter: any) => Promise<string | undefined>
}

export type PreparserExtensionLoader = (headmatter?: Record<string, unknown>, filepath?: string) => Promise<SlidevPreparserExtension[]>
Expand Down

0 comments on commit fea16a2

Please sign in to comment.