@sorrell/cli-utilities 1.0.24 → 1.0.26
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FormatRules } from "./Print.Types.js";
|
|
1
|
+
import type { FormatRules, Formatter } from "./Print.Types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Formats a given {@link Message} as code.
|
|
4
4
|
*
|
|
@@ -27,4 +27,14 @@ export declare function Path(Path: string): string;
|
|
|
27
27
|
* is formatted by the corresponding {@link Formatter}.
|
|
28
28
|
*/
|
|
29
29
|
export declare function Format(Message: string, Rules: FormatRules): string;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a function that formats a given `string` with the given {@link Rules}.
|
|
32
|
+
*
|
|
33
|
+
* @param Rules - The {@link FormatRules} used to format messages passed to the
|
|
34
|
+
* returned function.
|
|
35
|
+
*
|
|
36
|
+
* @returns A function that will format the `Message` passed to it according to the
|
|
37
|
+
* {@link Rules} passed to this function.
|
|
38
|
+
*/
|
|
39
|
+
export declare function MakeFormatter(Rules: FormatRules): Formatter;
|
|
30
40
|
//# sourceMappingURL=Print.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Print.d.ts","sourceRoot":"","sources":["../../Source/Print/Print.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Print.d.ts","sourceRoot":"","sources":["../../Source/Print/Print.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAgB/D;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAG5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGzC;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAClB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,WAAW,GACnB,MAAM,CAYR;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,CAM3D"}
|
|
@@ -56,4 +56,18 @@ export function Format(Message, Rules) {
|
|
|
56
56
|
}
|
|
57
57
|
return Message;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Creates a function that formats a given `string` with the given {@link Rules}.
|
|
61
|
+
*
|
|
62
|
+
* @param Rules - The {@link FormatRules} used to format messages passed to the
|
|
63
|
+
* returned function.
|
|
64
|
+
*
|
|
65
|
+
* @returns A function that will format the `Message` passed to it according to the
|
|
66
|
+
* {@link Rules} passed to this function.
|
|
67
|
+
*/
|
|
68
|
+
export function MakeFormatter(Rules) {
|
|
69
|
+
return function (Message) {
|
|
70
|
+
return Format(Message, Rules);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
59
73
|
//# sourceMappingURL=Print.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Print.js","sourceRoot":"","sources":["../../Source/Print/Print.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;;GAMG;AACH,SAAS,UAAU,CAAC,OAAe;IAE/B,OAAO,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,IAAI,CAAC,OAAe;IAEhC,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;AAC1C,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,IAAI,CAAC,IAAY;IAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;AACjC,CA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