Comparing version 0.42.0 to 0.43.0
@@ -187,3 +187,4 @@ "use strict"; | ||
} | ||
else if (ts.isPropertyDeclaration(member) || ts.isPropertySignature(member)) { | ||
else if (ts.isPropertyDeclaration(member) || ts.isPropertySignature(member) || | ||
(ts.isMethodDeclaration(member) && member.questionToken)) { | ||
const isStatic = transformerUtil.hasModifierFlag(member, ts.ModifierFlags.Static); | ||
@@ -199,3 +200,4 @@ if (isStatic) { | ||
member.kind === ts.SyntaxKind.MethodSignature || | ||
member.kind === ts.SyntaxKind.GetAccessor || member.kind === ts.SyntaxKind.SetAccessor) { | ||
member.kind === ts.SyntaxKind.GetAccessor || | ||
member.kind === ts.SyntaxKind.SetAccessor) { | ||
if (transformerUtil.hasModifierFlag(member, ts.ModifierFlags.Abstract) || | ||
@@ -205,3 +207,4 @@ ts.isInterfaceDeclaration(typeDecl)) { | ||
} | ||
// Non-abstract methods only exist on classes, and are handled in regular emit. | ||
// Non-abstract methods only exist on classes, and are handled in regular | ||
// emit. | ||
} | ||
@@ -250,3 +253,3 @@ else { | ||
tags.push({ tagName: 'export' }); | ||
// Use element access instead of property access for compued names. | ||
// Use element access instead of property access for computed names. | ||
const lhs = typeof name === 'string' ? ts.createPropertyAccess(instancePropAccess, name) : | ||
@@ -253,0 +256,0 @@ ts.createElementAccess(instancePropAccess, name); |
{ | ||
"name": "tsickle", | ||
"version": "0.42.0", | ||
"version": "0.43.0", | ||
"description": "Transpile TypeScript code to JavaScript with Closure annotations.", | ||
@@ -5,0 +5,0 @@ "main": "out/src/tsickle.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
616419
0
8471