Skip to content

Commit

Permalink
chore: fix typing error for recent comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Aug 2, 2023
1 parent 17b3620 commit bd69479
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/comments/waline-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ declare const Waline: any
import {
init,
RecentComments
// @ts-expect-error
} from 'https://unpkg.com/@waline/client@v2/dist/waline.mjs'
import { filterHTMLContent, formatCommentRelativeTime } from '..'
import { PluginsData } from '@/models/ThemeConfig.class'
Expand Down Expand Up @@ -64,7 +65,7 @@ export class WalineComments {
lang: ''
}

constructor({ serverURL, lang }: WalineConfig) {
constructor({ serverURL, lang }: Partial<WalineConfig>) {
this.configs.serverURL = serverURL
this.configs.lang = lang
}
Expand Down

0 comments on commit bd69479

Please sign in to comment.