mirror of
https://github.com/acamarata/dayjs-hijri-plus.git
synced 2026-06-30 18:54:26 +00:00
Add typedoc and typedoc-plugin-markdown as devDependencies. Add typedoc.json config targeting src/index.ts with markdown output to .github/wiki/api. Add docs script to package.json. Generate initial API reference pages. Part of T-E8-03 — TypeDoc automation for all 12 JS/TS packages.
719 B
719 B
dayjs-hijri-plus / registerCalendar
Function: registerCalendar()
registerCalendar(
name,engine):void
Defined in: node_modules/.pnpm/hijri-core@1.0.0/node_modules/hijri-core/dist/index.d.mts:25
Re-exported registry API from hijri-core. Register, retrieve, or list custom calendar engines without adding hijri-core as a direct dependency.
Parameters
name
string
engine
Returns
void
Example
import { registerCalendar, listCalendars } from 'dayjs-hijri-plus';
registerCalendar('my-cal', myEngine);
listCalendars(); // ['uaq', 'fcna', 'my-cal']