dayjs-hijri-plus/.github/wiki/api/functions/registerCalendar.md
Aric Camarata 033ca47576 docs: add TypeDoc API generation (typedoc@0.28.19 + typedoc-plugin-markdown@4.11.0)
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.
2026-05-30 16:41:59 -04:00

719 B

dayjs-hijri-plus v1.0.1


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

CalendarEngine

Returns

void

Example

import { registerCalendar, listCalendars } from 'dayjs-hijri-plus';
registerCalendar('my-cal', myEngine);
listCalendars(); // ['uaq', 'fcna', 'my-cal']