UNPKG

@waline/client

Version:

client for waline comment system

38 lines • 887 B
// oxlint-disable-next-line typescript/no-explicit-any type WalineAbort = (reason?: any) => void; export interface WalineCommentCountOptions { /** * Waline 服务端地址 * * Waline server url */ serverURL: string; /** * 评论数 CSS 选择器 * * Comment count CSS selector * * @default '.waline-comment-count' */ selector?: string; /** * 需要获取的默认路径 * * Path to be fetched by default * * @default window.location.pathname */ path?: string; /** * 错误提示消息所使用的语言 * * Language of error message * * @default navigator.language */ lang?: string; } export declare const commentCount: ({ serverURL, path, selector, lang }: WalineCommentCountOptions) => WalineAbort; export declare const version: string; export type { WalineAbort }; //# sourceMappingURL=comment.d.ts.map