arqam 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,11 @@
1
- // TypeScript declarations of the English engine arqamEN: English numbers and amounts in words.
2
- // import arqamEN from "arqam/en";
3
- // arqamEN.toWords("1250.50", "QAR") // One Thousand Two Hundred Fifty Qatari Riyals and Fifty Dirhams
4
- // @author : Mohsen Alyafei
1
+ /*********************************************************************
2
+ * @file : arqamEN.d.mts
3
+ * @purpose : TypeScript declarations of the English engine arqamEN: English numbers and amounts in words.
4
+ * import arqamEN from "arqam/en";
5
+ * arqamEN.toWords("1250.50", "QAR") // One Thousand Two Hundred Fifty Qatari Riyals and Fifty Dirhams
6
+ * @author : Mohsen Alyafei
7
+ * @Licence : MIT
8
+ **********************************************************************/
5
9
  export type ArqamENNumber = string | number | bigint;
6
10
  export type ArqamENSwitch = "on" | "off" | "";
7
11
  export interface ArqamENOptions {
@@ -1,7 +1,10 @@
1
- /*! arqamExplain — TypeScript declarations for dist/arqamExplain.mjs. MIT licence.
2
- * Copied to dist/ by tools/build_dist.py; tests/dist.test.js checks that every export of the module is declared here
3
- * and that the declarations compile. The module imports the engine (arqamAR.mjs) and attaches arqamAR.explain.
4
- * @author: Mohsen Alyafei */
1
+ /*********************************************************************
2
+ * @file : arqamExplain.d.mts
3
+ * @purpose : TypeScript declarations for arqamExplain.mjs. The module imports the engine (arqamAR.mjs)
4
+ * and attaches arqamAR.explain.
5
+ * @author : Mohsen Alyafei
6
+ * @Licence : MIT
7
+ **********************************************************************/
5
8
  import type { ArqamNumber, ArqamOptions, ArqamDate, ArqamDateOptions, ArqamTime, ArqamTimeOptions, ArqamFraction, ArqamFractionOptions, ArqamNumberFormatOptions } from "./arqamAR.mjs";
6
9
 
7
10
  /** What a word is in the text. "word" is any other word (فقط، سالب، بالمائة، لا غير …). */