@shikijs/types 3.9.2 → 3.11.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.
- package/dist/index.d.mts +11 -0
- 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
|
*/
|