@shikijs/types 3.10.0 → 3.12.0

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.mts +11 -0
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -496,6 +496,17 @@ interface ShikiTransformer {
496
496
  * Name of the transformer
497
497
  */
498
498
  name?: string;
499
+ /**
500
+ * Enforce plugin invocation tier similar to webpack loaders. Hooks ordering
501
+ * is still subject to the `order` property in the hook object.
502
+ *
503
+ * Plugin invocation order:
504
+ * - `enforce: 'pre'` plugins
505
+ * - normal plugins
506
+ * - `enforce: 'post'` plugins
507
+ * - shiki post plugins
508
+ */
509
+ enforce?: 'pre' | 'post';
499
510
  /**
500
511
  * Transform the raw input code before passing to the highlighter.
501
512
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/types",
3
3
  "type": "module",
4
- "version": "3.10.0",
4
+ "version": "3.12.0",
5
5
  "description": "Type definitions for Shiki",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",