@shikijs/types 2.0.1 → 2.0.3

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.
package/dist/index.d.mts CHANGED
@@ -543,7 +543,7 @@ interface HighlighterCoreOptions<Sync extends boolean = false> {
543
543
  /**
544
544
  * Custom RegExp engine.
545
545
  */
546
- engine?: Sync extends true ? RegexEngine : Awaitable<RegexEngine>;
546
+ engine: Sync extends true ? RegexEngine : Awaitable<RegexEngine>;
547
547
  /**
548
548
  * Theme names, or theme registration objects to be loaded upfront.
549
549
  */
@@ -569,7 +569,11 @@ interface HighlighterCoreOptions<Sync extends boolean = false> {
569
569
  */
570
570
  loadWasm?: Sync extends true ? never : LoadWasmOptions;
571
571
  }
572
- interface BundledHighlighterOptions<L extends string, T extends string> extends Pick<HighlighterCoreOptions, 'warnings' | 'engine'> {
572
+ interface BundledHighlighterOptions<L extends string, T extends string> extends Pick<HighlighterCoreOptions, 'warnings'> {
573
+ /**
574
+ * Custom RegExp engine.
575
+ */
576
+ engine?: Awaitable<RegexEngine>;
573
577
  /**
574
578
  * Theme registation
575
579
  *
package/dist/index.d.ts CHANGED
@@ -543,7 +543,7 @@ interface HighlighterCoreOptions<Sync extends boolean = false> {
543
543
  /**
544
544
  * Custom RegExp engine.
545
545
  */
546
- engine?: Sync extends true ? RegexEngine : Awaitable<RegexEngine>;
546
+ engine: Sync extends true ? RegexEngine : Awaitable<RegexEngine>;
547
547
  /**
548
548
  * Theme names, or theme registration objects to be loaded upfront.
549
549
  */
@@ -569,7 +569,11 @@ interface HighlighterCoreOptions<Sync extends boolean = false> {
569
569
  */
570
570
  loadWasm?: Sync extends true ? never : LoadWasmOptions;
571
571
  }
572
- interface BundledHighlighterOptions<L extends string, T extends string> extends Pick<HighlighterCoreOptions, 'warnings' | 'engine'> {
572
+ interface BundledHighlighterOptions<L extends string, T extends string> extends Pick<HighlighterCoreOptions, 'warnings'> {
573
+ /**
574
+ * Custom RegExp engine.
575
+ */
576
+ engine?: Awaitable<RegexEngine>;
573
577
  /**
574
578
  * Theme registation
575
579
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/types",
3
3
  "type": "module",
4
- "version": "2.0.1",
4
+ "version": "2.0.3",
5
5
  "description": "Type definitions for Shiki",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",