@travetto/transformer 2.1.1 → 2.1.4
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/package.json +2 -2
- package/src/resolver/types.ts +6 -1
- package/src/util/doc.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/transformer",
|
|
3
3
|
"displayName": "Transformation",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.4",
|
|
5
5
|
"description": "Functionality for AST transformations, with transformer registration, and general utils",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"typescript",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "module/transformer"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@travetto/base": "^2.1.
|
|
28
|
+
"@travetto/base": "^2.1.3"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
package/src/resolver/types.ts
CHANGED
|
@@ -141,7 +141,12 @@ export interface PointerType extends Type<'pointer'> {
|
|
|
141
141
|
target: Exclude<AnyType, PointerType>;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
/**
|
|
145
|
+
* Unknown type, should default to object
|
|
146
|
+
*/
|
|
147
|
+
export interface UnknownType extends Type<'unknown'> { }
|
|
148
|
+
|
|
149
|
+
export type AnyType = TupleType | ShapeType | UnionType | LiteralType | ExternalType | PointerType | UnknownType;
|
|
145
150
|
|
|
146
151
|
/**
|
|
147
152
|
* Simple interface for checked methods
|
package/src/util/doc.ts
CHANGED
|
@@ -26,7 +26,7 @@ export class DocUtil {
|
|
|
26
26
|
* Read JS Docs from a `ts.Declaration`
|
|
27
27
|
*/
|
|
28
28
|
static describeDocs(node: ts.Declaration | ts.Type) {
|
|
29
|
-
if (!('getSourceFile' in node)) {
|
|
29
|
+
if (node && !('getSourceFile' in node)) {
|
|
30
30
|
node = DeclarationUtil.getPrimaryDeclarationNode(node);
|
|
31
31
|
}
|
|
32
32
|
const out: DeclDocumentation = {
|