Comparing version 3.5.1 to 3.5.2
@@ -0,1 +1,7 @@ | ||
# 3.5.2 | ||
**Bugfixes:** | ||
* Published declaration files no longer contain `const enum`. They are now declared as regular enums instead. | ||
# 3.5.1 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "tsutils", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"description": "utilities for working with typescript's AST", | ||
"scripts": { | ||
"compile": "rm -rf {,util,typeguard,test/**}/*.js; tsc -p .", | ||
"compile": "rm -rf {,util,typeguard,test/**}/*.js; ttsc -p .", | ||
"lint:tslint": "wotan -m @fimbul/valtyr", | ||
@@ -45,4 +45,6 @@ "lint:wotan": "wotan", | ||
"nyc": "^12.0.1", | ||
"ts-transform-const-enum": "^0.0.1", | ||
"tslint": "^5.8.0", | ||
"tslint-consistent-codestyle": "^1.11.0", | ||
"ttypescript": "^1.5.5", | ||
"typescript": "^3.3.0-dev.20181122" | ||
@@ -49,0 +51,0 @@ }, |
@@ -13,3 +13,3 @@ import * as ts from 'typescript'; | ||
} | ||
export declare const enum DeclarationDomain { | ||
export declare enum DeclarationDomain { | ||
Namespace = 1, | ||
@@ -21,3 +21,3 @@ Type = 2, | ||
} | ||
export declare const enum UsageDomain { | ||
export declare enum UsageDomain { | ||
Namespace = 1, | ||
@@ -24,0 +24,0 @@ Type = 2, |
@@ -113,3 +113,3 @@ "use strict"; | ||
case ts.SyntaxKind.Parameter: | ||
if (node.parent.parent.kind === ts.SyntaxKind.IndexSignature) | ||
if (node.parent.parent.kind === ts.SyntaxKind.IndexSignature || node.originalKeywordKind === ts.SyntaxKind.ThisKeyword) | ||
return; | ||
@@ -302,9 +302,2 @@ case ts.SyntaxKind.BindingElement: | ||
} | ||
var ConditionalTypeScopeState; | ||
(function (ConditionalTypeScopeState) { | ||
ConditionalTypeScopeState[ConditionalTypeScopeState["Initial"] = 0] = "Initial"; | ||
ConditionalTypeScopeState[ConditionalTypeScopeState["Extends"] = 1] = "Extends"; | ||
ConditionalTypeScopeState[ConditionalTypeScopeState["TrueType"] = 2] = "TrueType"; | ||
ConditionalTypeScopeState[ConditionalTypeScopeState["FalseType"] = 3] = "FalseType"; | ||
})(ConditionalTypeScopeState || (ConditionalTypeScopeState = {})); | ||
class ConditionalTypeScope extends NonRootScope { | ||
@@ -311,0 +304,0 @@ constructor(parent) { |
@@ -36,3 +36,3 @@ import * as ts from 'typescript'; | ||
}) => T): T | undefined; | ||
export declare const enum VariableDeclarationKind { | ||
export declare enum VariableDeclarationKind { | ||
Var = 0, | ||
@@ -45,3 +45,3 @@ Let = 1, | ||
export declare function isBlockScopedVariableDeclaration(declaration: ts.VariableDeclaration): boolean; | ||
export declare const enum ScopeBoundary { | ||
export declare enum ScopeBoundary { | ||
None = 0, | ||
@@ -53,3 +53,3 @@ Function = 1, | ||
} | ||
export declare const enum ScopeBoundarySelector { | ||
export declare enum ScopeBoundarySelector { | ||
Function = 1, | ||
@@ -84,3 +84,3 @@ Block = 3, | ||
export declare function isSameLine(sourceFile: ts.SourceFile, pos1: number, pos2: number): boolean; | ||
export declare const enum SideEffectOptions { | ||
export declare enum SideEffectOptions { | ||
None = 0, | ||
@@ -98,3 +98,3 @@ TaggedTemplate = 1, | ||
export declare function parseJsDocOfNode(node: ts.Node, considerTrailingComments?: boolean, sourceFile?: ts.SourceFile): ts.JSDoc[]; | ||
export declare const enum ImportKind { | ||
export declare enum ImportKind { | ||
ImportDeclaration = 1, | ||
@@ -135,1 +135,2 @@ ImportEquals = 2, | ||
export declare function isCompilerOptionEnabled(options: ts.CompilerOptions, option: BooleanCompilerOptions | 'stripInternal'): boolean; | ||
export declare function isAmbientModule(node: ts.ModuleDeclaration): boolean; |
@@ -1131,1 +1131,5 @@ "use strict"; | ||
exports.isCompilerOptionEnabled = isCompilerOptionEnabled; | ||
function isAmbientModule(node) { | ||
return node.name.kind === ts.SyntaxKind.StringLiteral || (node.flags & ts.NodeFlags.GlobalAugmentation) !== 0; | ||
} | ||
exports.isAmbientModule = isAmbientModule; |
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
284812
16
3409