@gukhanmun/types 0.2.0 → 0.3.0-dev.153

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -50,6 +50,8 @@ type Preset = "ko-kr" | "ko-kp";
50
50
  * `RenderMode::Original`.
51
51
  */
52
52
  type RenderMode = "hangul-only" | "hangul-hanja-parens" | "hanja-hangul-parens" | "ruby-on-hangul" | "ruby-on-hanja" | "original";
53
+ /** The hanja variant set applied after dictionary recognition. */
54
+ type HanjaVariantSet = "as-dictionary" | "shinjitai" | "kanxi" | "simplified" | "asahimoji";
53
55
  /**
54
56
  * Selects how glosses are rendered when {@link RenderMode} is `"original"`.
55
57
  *
@@ -314,6 +316,8 @@ interface GukhanmunOptions {
314
316
  * @see {@link OriginalGloss}
315
317
  */
316
318
  readonly originalGloss?: OriginalGloss;
319
+ /** The hanja variant set. Defaults to `"as-dictionary"`. */
320
+ readonly hanjaVariantSet?: HanjaVariantSet;
317
321
  /**
318
322
  * Hanja-span segmentation algorithm. Defaults to `"lattice"`.
319
323
  *
@@ -572,4 +576,4 @@ declare class GukhanmunError extends Error {
572
576
  }[];
573
577
  }
574
578
  //#endregion
575
- export { ContextWindow, DictionaryEntry, DictionarySource, Directives, ErrorCode, FileDictionarySource, Format, Gukhanmun, GukhanmunError, GukhanmunFactory, GukhanmunOptions, HomophoneDetection, HtmlOptions, NumeralStrategy, OriginalGloss, Preset, Recovery, RenderMode, Segmentation, load };
579
+ export { ContextWindow, DictionaryEntry, DictionarySource, Directives, ErrorCode, FileDictionarySource, Format, Gukhanmun, GukhanmunError, GukhanmunFactory, GukhanmunOptions, HanjaVariantSet, HomophoneDetection, HtmlOptions, NumeralStrategy, OriginalGloss, Preset, Recovery, RenderMode, Segmentation, load };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gukhanmun/types",
3
- "version": "0.2.0",
3
+ "version": "0.3.0-dev.153",
4
4
  "description": "TypeScript API contract for Gukhanmun (type declarations only, no runtime code).",
5
5
  "type": "module",
6
6
  "exports": {