prettier-plugin-embed 0.7.1 → 0.7.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/README.md +4 -0
- package/dist/embedded/register.d.ts +30 -30
- package/dist/embedded/utils.d.ts +2 -2
- package/dist/index.js +752 -731
- package/dist/utils.d.ts +2 -2
- package/package.json +1 -1
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Expression, Node, TemplateLiteral } from "estree";
|
|
2
|
-
import {
|
|
2
|
+
import type { AstPath, Options, Printer } from "prettier";
|
|
3
3
|
import { type EmbeddedComment, type EmbeddedLanguage, type EmbeddedTag } from "./embedded/index.js";
|
|
4
4
|
import type { EmbeddedOverride } from "./types.js";
|
|
5
5
|
export declare function resolveEmbeddedOverrideOptions(options: Options, { commentOrTag, kind, }: {
|
|
@@ -7,7 +7,7 @@ export declare function resolveEmbeddedOverrideOptions(options: Options, { comme
|
|
|
7
7
|
kind: "comment" | "tag";
|
|
8
8
|
}): Promise<EmbeddedOverride["options"] | undefined>;
|
|
9
9
|
export declare function matchTagExpressionPattern(tagExpression: Expression, pattern: string): boolean;
|
|
10
|
-
export declare const compareTagExpressionToTagString: (tagExpression: Expression, tagString: string, parse: (text: string) => Node | Promise<Node>) => boolean;
|
|
10
|
+
export declare const compareTagExpressionToTagString: (tagExpression: Expression, tagString: string, parse: (text: string) => Node | Promise<Node>, cache?: Map<string, Node | undefined>) => boolean;
|
|
11
11
|
export declare function parseCommentFromTemplateLiteralAstPath({ node, parent, }: AstPath<Node> & {
|
|
12
12
|
node: TemplateLiteral;
|
|
13
13
|
}): string | undefined;
|