mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-12 23:33:43 +08:00
15 lines
396 B
TypeScript
15 lines
396 B
TypeScript
declare module 'opencc-js' {
|
|
interface ConverterOptions {
|
|
from: 'cn' | 'tw' | 'twp' | 'hk' | 'jp';
|
|
to: 'cn' | 'tw' | 'twp' | 'hk' | 'jp';
|
|
}
|
|
|
|
export function Converter(options: ConverterOptions): (text: string) => string;
|
|
export function HTMLConverter(
|
|
converter: (text: string) => string,
|
|
rootNode: HTMLElement,
|
|
fromLangTag: string,
|
|
toLangTag: string
|
|
): void;
|
|
}
|