Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Dec 10, 2022
1 parent 7c4eac3 commit 2bb91f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/bytemd/src/editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
createEditorUtils,
findStartIndex,
getBuiltinActions,
getBuiltinRightActions,
handleImageUpload,
} from './editor'
import Help from './help.svelte'
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-mermaid/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import en from './locales/en.json'
import * as icons from '@icon-park/svg'
import type { BytemdPlugin } from 'bytemd'
import type { Config, Mermaid } from 'mermaid'
import type { default as Mermaid, MermaidConfig } from 'mermaid'

type Locale = {
mermaid: string
Expand All @@ -15,7 +15,7 @@ type Locale = {
pie: string
}

export interface BytemdPluginMermaidOptions extends Config {
export interface BytemdPluginMermaidOptions extends MermaidConfig {
locale?: Partial<Locale>
}

Expand All @@ -24,7 +24,7 @@ export default function mermaid({
...mermaidConfig
}: BytemdPluginMermaidOptions = {}): BytemdPlugin {
const locale = { ...en, ..._locale } as Locale
let m: Mermaid
let m: typeof Mermaid

const actionItems = [
{
Expand Down

0 comments on commit 2bb91f2

Please sign in to comment.