khmer-lunar-d
Version:
Khmer Lunar date Plugin for Day.js
15 lines (12 loc) • 292 B
TypeScript
// add type to support dayjs
import { PluginFunc } from "dayjs";
declare const plugin: PluginFunc;
export = plugin;
declare namespace plugin {
export interface toKhDate {
toKhDate(format?: string): string;
}
}
declare module "dayjs" {
interface Dayjs extends plugin.toKhDate {}
}