Skip to content

Commit

Permalink
fix(kit): broken types for renderCodeHighlight
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jul 22, 2023
1 parent 7e5ed59 commit 34bfd52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/devtools-kit/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default defineBuildConfig({
'hookable',
'vite-plugin-vue-inspector',
'error-stack-parser-es',
'shiki-es',
],
declaration: true,
rollup: {
Expand Down
3 changes: 2 additions & 1 deletion packages/devtools-kit/src/_types/client-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { AppConfig } from 'nuxt/schema'
import type { NuxtApp } from 'nuxt/dist/app/nuxt'
import type { Hookable } from 'hookable'
import type { BirpcReturn } from 'birpc'
import type { Lang } from 'shiki-es'
import type { ServerFunctions } from './rpc'
import type { HookInfo, LoadingTimeMetric, PluginMetric, VueInspectorClient, VueInspectorData } from './integrations'
import type { TimelineMetrics } from './timeline-metrics'
Expand Down Expand Up @@ -83,7 +84,7 @@ export interface NuxtDevtoolsHostClient {

export interface NuxtDevtoolsClient {
rpc: BirpcReturn<ServerFunctions>
renderCodeHighlight: (code: string, lang: string, lines?: boolean, theme?: string) => {
renderCodeHighlight: (code: string, lang: Lang) => {
code: string
supported: boolean
}
Expand Down

0 comments on commit 34bfd52

Please sign in to comment.