Skip to content

Commit

Permalink
feat: #456 - Relax ts dependency to 3.0.1 and 3.0.3.
Browse files Browse the repository at this point in the history
The typescript declaration file is no longer stored internally in the library.

I would like to widen support for 3.1.x, but that compiler version seems slightly broken. It resolves a lot of types to `any` within this library. I will need to investigate and report the issue to the typescript team if it hasn't been reported (or perhaps it's an issue internally in the library).
  • Loading branch information
dsherret committed Oct 6, 2018
1 parent c81081e commit 1029f75
Show file tree
Hide file tree
Showing 34 changed files with 1,845 additions and 12,075 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
/docs/Gemfile.lock
/docs/_site
/dist-scripts
/dist-declarations
/.nyc_output
/npm-debug.log
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ node_js:
- "6"
before_script:
- npm run lint
- npm run ensure-no-project-compile-errors
- npm run build-declarations
script:
- npm run test-coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- npm run test-ts-versions
after_script:
- npm run code-verification
11 changes: 7 additions & 4 deletions lib/ts-simple-ast.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ts, SyntaxKind, CompilerOptions, EmitHint, ScriptKind, NewLineKind, LanguageVariant, ScriptTarget, TypeFlags, ObjectFlags, SymbolFlags, TypeFormatFlags, DiagnosticCategory, EditorSettings, ModuleResolutionKind } from "./typescript/typescript";
import * as ts from "typescript";
import { SyntaxKind, CompilerOptions, EmitHint, ScriptKind, NewLineKind, LanguageVariant, ScriptTarget, TypeFlags, ObjectFlags, SymbolFlags, TypeFormatFlags, DiagnosticCategory, EditorSettings, ModuleResolutionKind } from "typescript";
import { CodeBlockWriter } from "./codeBlockWriter/code-block-writer";

export declare class Directory {
Expand Down Expand Up @@ -4035,9 +4036,9 @@ export declare class Node<NodeType extends ts.Node = ts.Node> {
*/
forget(): void;
/**
* Gets if the node was forgotten.
* Gets if the compiler node was forgotten.
*
* This will be true when the node was forgotten or removed.
* This will be true when the compiler node was forgotten or removed.
*/
wasForgotten(): boolean;
/**
Expand Down Expand Up @@ -9980,7 +9981,9 @@ interface TypeParameterDeclarationSpecificStructure {
default?: string;
}

export * from "./typescript/typescript";
export declare type CompilerNodeBrandPropertyNamesType = "_classElementBrand" | "_declarationBrand" | "_expressionBrand" | "_functionLikeDeclarationBrand" | "_jsDocTypeBrand" | "_leftHandSideExpressionBrand" | "_literalExpressionBrand" | "_memberExpressionBrand" | "_objectLiteralBrandBrand" | "_primaryExpressionBrand" | "_propertyAccessExpressionLikeQualifiedNameBrand" | "_statementBrand" | "_typeElementBrand" | "_typeNodeBrand" | "_unaryExpressionBrand" | "_updateExpressionBrand";

export { ts, SyntaxKind, CompilerOptions, EmitHint, ScriptKind, NewLineKind, LanguageVariant, ScriptTarget, TypeFlags, ObjectFlags, SymbolFlags, TypeFormatFlags, DiagnosticCategory, EditorSettings, ModuleResolutionKind };
export * from "./codeBlockWriter/code-block-writer";

/** @deprecated Use the named export "Project" */
Expand Down

0 comments on commit 1029f75

Please sign in to comment.