Skip to content

Commit 18a2fc8

Browse files
committed
Accept tsserverlibrary.d.ts and fix gulpfile
1 parent 4aca0c8 commit 18a2fc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Gulpfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ gulp.task(tsserverLibraryFile, /*help*/ false, [servicesFile, typesMapJson], (do
528528
const serverLibraryProject = tsc.createProject("src/server/tsconfig.library.json", getCompilerSettings({ removeComments: false }, /*useBuiltCompiler*/ true));
529529
const {js, dts}: { js: NodeJS.ReadableStream, dts: NodeJS.ReadableStream } = serverLibraryProject.src()
530530
.pipe(sourcemaps.init())
531-
.pipe(newer(tsserverLibraryFile))
531+
.pipe(newer(<any>{ dest: tsserverLibraryFile, extra: ["src/compiler/**/*.ts", "src/services/**/*.ts"] }))
532532
.pipe(serverLibraryProject());
533533

534534
return merge2([

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ declare namespace ts {
877877
type DestructuringAssignment = ObjectDestructuringAssignment | ArrayDestructuringAssignment;
878878
type BindingOrAssignmentElement = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyAssignment | ShorthandPropertyAssignment | SpreadAssignment | OmittedExpression | SpreadElement | ArrayLiteralExpression | ObjectLiteralExpression | AssignmentExpression<EqualsToken> | Identifier | PropertyAccessExpression | ElementAccessExpression;
879879
type BindingOrAssignmentElementRestIndicator = DotDotDotToken | SpreadElement | SpreadAssignment;
880-
type BindingOrAssignmentElementTarget = BindingOrAssignmentPattern | Expression;
880+
type BindingOrAssignmentElementTarget = BindingOrAssignmentPattern | Identifier | PropertyAccessExpression | ElementAccessExpression | OmittedExpression;
881881
type ObjectBindingOrAssignmentPattern = ObjectBindingPattern | ObjectLiteralExpression;
882882
type ArrayBindingOrAssignmentPattern = ArrayBindingPattern | ArrayLiteralExpression;
883883
type AssignmentPattern = ObjectLiteralExpression | ArrayLiteralExpression;

0 commit comments

Comments
 (0)