@ttsc/factory 0.16.1 → 0.16.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/lib/factory/expressions/createTaggedTemplateExpression.d.ts +1 -1
- package/lib/factory/expressions/createTaggedTemplateExpression.js +1 -1
- package/lib/factory/expressions/createTaggedTemplateExpression.mjs +1 -1
- package/lib/factory/statements/createEmptyStatement.d.ts +0 -3
- package/lib/factory/statements/createEmptyStatement.js +0 -3
- package/lib/factory/statements/createEmptyStatement.js.map +1 -1
- package/lib/factory/statements/createEmptyStatement.mjs +0 -3
- package/lib/factory/statements/createEmptyStatement.mjs.map +1 -1
- package/lib/factory/types/createTemplateLiteralType.d.ts +1 -1
- package/lib/factory/types/createTemplateLiteralType.js +1 -1
- package/lib/factory/types/createTemplateLiteralType.mjs +1 -1
- package/lib/factory/types/createTemplateLiteralTypeSpan.d.ts +1 -1
- package/lib/factory/types/createTemplateLiteralTypeSpan.js +1 -1
- package/lib/factory/types/createTemplateLiteralTypeSpan.mjs +1 -1
- package/package.json +1 -1
- package/src/factory/expressions/createTaggedTemplateExpression.ts +1 -1
- package/src/factory/statements/createEmptyStatement.ts +0 -3
- package/src/factory/types/createTemplateLiteralType.ts +1 -1
- package/src/factory/types/createTemplateLiteralTypeSpan.ts +1 -1
|
@@ -8,7 +8,7 @@ import type { Expression, TaggedTemplateExpression, TemplateLiteral, TypeNode }
|
|
|
8
8
|
* The printer writes the tag directly against the template with no space
|
|
9
9
|
* between them.
|
|
10
10
|
*
|
|
11
|
-
* With `tag` of `tag` and a template of
|
|
11
|
+
* With `tag` of `tag` and a template of `hi`, the printer emits:
|
|
12
12
|
*
|
|
13
13
|
* ```ts
|
|
14
14
|
* tag`hi`;
|
|
@@ -11,7 +11,7 @@ const make_1 = require("../internal/make");
|
|
|
11
11
|
* The printer writes the tag directly against the template with no space
|
|
12
12
|
* between them.
|
|
13
13
|
*
|
|
14
|
-
* With `tag` of `tag` and a template of
|
|
14
|
+
* With `tag` of `tag` and a template of `hi`, the printer emits:
|
|
15
15
|
*
|
|
16
16
|
* ```ts
|
|
17
17
|
* tag`hi`;
|
|
@@ -9,7 +9,7 @@ import { make } from '../internal/make.mjs';
|
|
|
9
9
|
* The printer writes the tag directly against the template with no space
|
|
10
10
|
* between them.
|
|
11
11
|
*
|
|
12
|
-
* With `tag` of `tag` and a template of
|
|
12
|
+
* With `tag` of `tag` and a template of `hi`, the printer emits:
|
|
13
13
|
*
|
|
14
14
|
* ```ts
|
|
15
15
|
* tag`hi`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEmptyStatement.js","sourceRoot":"","sources":["../../../src/factory/statements/createEmptyStatement.ts"],"names":[],"mappings":";;;AACA,2CAAwC;AAExC
|
|
1
|
+
{"version":3,"file":"createEmptyStatement.js","sourceRoot":"","sources":["../../../src/factory/statements/createEmptyStatement.ts"],"names":[],"mappings":";;;AACA,2CAAwC;AAExC;;;;;;;;;;;GAWG;AACI,MAAM,oBAAoB,GAAG,GAAmB,EAAE,CACvD,IAAA,WAAI,EAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;AADhB,QAAA,oBAAoB,GAApB,oBAAoB,CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEmptyStatement.mjs","sources":["../../../src/factory/statements/createEmptyStatement.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA
|
|
1
|
+
{"version":3,"file":"createEmptyStatement.mjs","sources":["../../../src/factory/statements/createEmptyStatement.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA;;;;;;;;;;;AAWG;AACI,MAAM,oBAAoB,GAAG,MAClC,IAAI,CAAC,gBAAgB,EAAE,EAAE;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TemplateHead, TemplateLiteralTypeNode, TemplateLiteralTypeSpan } from "../../ast";
|
|
2
2
|
/**
|
|
3
|
-
* Create a {@link TemplateLiteralTypeNode}: a
|
|
3
|
+
* Create a {@link TemplateLiteralTypeNode}: a `id-${string}` template literal
|
|
4
4
|
* type.
|
|
5
5
|
*
|
|
6
6
|
* The head supplies the leading text up to the first `${`, then each span
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createTemplateLiteralType = void 0;
|
|
4
4
|
const make_1 = require("../internal/make");
|
|
5
5
|
/**
|
|
6
|
-
* Create a {@link TemplateLiteralTypeNode}: a
|
|
6
|
+
* Create a {@link TemplateLiteralTypeNode}: a `id-${string}` template literal
|
|
7
7
|
* type.
|
|
8
8
|
*
|
|
9
9
|
* The head supplies the leading text up to the first `${`, then each span
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { make } from '../internal/make.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Create a {@link TemplateLiteralTypeNode}: a
|
|
4
|
+
* Create a {@link TemplateLiteralTypeNode}: a `id-${string}` template literal
|
|
5
5
|
* type.
|
|
6
6
|
*
|
|
7
7
|
* The head supplies the leading text up to the first `${`, then each span
|
|
@@ -8,7 +8,7 @@ import type { TemplateLiteralTypeSpan, TemplateMiddle, TemplateTail, TypeNode }
|
|
|
8
8
|
* when it closes the template. A span only renders meaningfully inside a
|
|
9
9
|
* template literal type; on its own it is just a fragment.
|
|
10
10
|
*
|
|
11
|
-
* Given a `number` type and a `px` tail inside a
|
|
11
|
+
* Given a `number` type and a `px` tail inside a `width:${...}` template, the
|
|
12
12
|
* printer renders:
|
|
13
13
|
*
|
|
14
14
|
* ```ts
|
|
@@ -11,7 +11,7 @@ const make_1 = require("../internal/make");
|
|
|
11
11
|
* when it closes the template. A span only renders meaningfully inside a
|
|
12
12
|
* template literal type; on its own it is just a fragment.
|
|
13
13
|
*
|
|
14
|
-
* Given a `number` type and a `px` tail inside a
|
|
14
|
+
* Given a `number` type and a `px` tail inside a `width:${...}` template, the
|
|
15
15
|
* printer renders:
|
|
16
16
|
*
|
|
17
17
|
* ```ts
|
|
@@ -9,7 +9,7 @@ import { make } from '../internal/make.mjs';
|
|
|
9
9
|
* when it closes the template. A span only renders meaningfully inside a
|
|
10
10
|
* template literal type; on its own it is just a fragment.
|
|
11
11
|
*
|
|
12
|
-
* Given a `number` type and a `px` tail inside a
|
|
12
|
+
* Given a `number` type and a `px` tail inside a `width:${...}` template, the
|
|
13
13
|
* printer renders:
|
|
14
14
|
*
|
|
15
15
|
* ```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttsc/factory",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "Self-contained legacy-style TypeScript AST factory and printer for source code generation, surviving the TypeScript-Go (tsgo) migration. Zero dependencies, no `typescript` import.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -15,7 +15,7 @@ import { make } from "../internal/make";
|
|
|
15
15
|
* The printer writes the tag directly against the template with no space
|
|
16
16
|
* between them.
|
|
17
17
|
*
|
|
18
|
-
* With `tag` of `tag` and a template of
|
|
18
|
+
* With `tag` of `tag` and a template of `hi`, the printer emits:
|
|
19
19
|
*
|
|
20
20
|
* ```ts
|
|
21
21
|
* tag`hi`;
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
import { make } from "../internal/make";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Create a {@link TemplateLiteralTypeNode}: a
|
|
9
|
+
* Create a {@link TemplateLiteralTypeNode}: a `id-${string}` template literal
|
|
10
10
|
* type.
|
|
11
11
|
*
|
|
12
12
|
* The head supplies the leading text up to the first `${`, then each span
|
|
@@ -15,7 +15,7 @@ import { make } from "../internal/make";
|
|
|
15
15
|
* when it closes the template. A span only renders meaningfully inside a
|
|
16
16
|
* template literal type; on its own it is just a fragment.
|
|
17
17
|
*
|
|
18
|
-
* Given a `number` type and a `px` tail inside a
|
|
18
|
+
* Given a `number` type and a `px` tail inside a `width:${...}` template, the
|
|
19
19
|
* printer renders:
|
|
20
20
|
*
|
|
21
21
|
* ```ts
|