mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Test error for import helpers with no __rest
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
error TS2305: Module 'tslib' has no exported member '__assign'.
|
||||
error TS2305: Module 'tslib' has no exported member '__decorate'.
|
||||
error TS2305: Module 'tslib' has no exported member '__extends'.
|
||||
error TS2305: Module 'tslib' has no exported member '__metadata'.
|
||||
error TS2305: Module 'tslib' has no exported member '__param'.
|
||||
error TS2305: Module 'tslib' has no exported member '__rest'.
|
||||
|
||||
|
||||
!!! error TS2305: Module 'tslib' has no exported member '__assign'.
|
||||
!!! error TS2305: Module 'tslib' has no exported member '__decorate'.
|
||||
!!! error TS2305: Module 'tslib' has no exported member '__extends'.
|
||||
!!! error TS2305: Module 'tslib' has no exported member '__metadata'.
|
||||
!!! error TS2305: Module 'tslib' has no exported member '__param'.
|
||||
!!! error TS2305: Module 'tslib' has no exported member '__rest'.
|
||||
==== tests/cases/compiler/external.ts (0 errors) ====
|
||||
export class A { }
|
||||
export class B extends A { }
|
||||
@@ -20,6 +24,10 @@ error TS2305: Module 'tslib' has no exported member '__param'.
|
||||
}
|
||||
}
|
||||
|
||||
const o = { a: 1 };
|
||||
const y = { ...o };
|
||||
const { ...x } = y;
|
||||
|
||||
==== tests/cases/compiler/script.ts (0 errors) ====
|
||||
class A { }
|
||||
class B extends A { }
|
||||
@@ -33,4 +41,5 @@ error TS2305: Module 'tslib' has no exported member '__param'.
|
||||
}
|
||||
|
||||
==== tests/cases/compiler/tslib.d.ts (0 errors) ====
|
||||
export {}
|
||||
export {}
|
||||
|
||||
@@ -11,6 +11,10 @@ class C {
|
||||
method(@dec x: number) {
|
||||
}
|
||||
}
|
||||
|
||||
const o = { a: 1 };
|
||||
const y = { ...o };
|
||||
const { ...x } = y;
|
||||
|
||||
//// [script.ts]
|
||||
class A { }
|
||||
@@ -25,7 +29,8 @@ class C {
|
||||
}
|
||||
|
||||
//// [tslib.d.ts]
|
||||
export {}
|
||||
export {}
|
||||
|
||||
|
||||
//// [external.js]
|
||||
"use strict";
|
||||
@@ -61,6 +66,9 @@ C = tslib_1.__decorate([
|
||||
dec,
|
||||
tslib_1.__metadata("design:paramtypes", [])
|
||||
], C);
|
||||
var o = { a: 1 };
|
||||
var y = __assign({}, o);
|
||||
var x = __rest(y, []);
|
||||
//// [script.js]
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
|
||||
@@ -16,6 +16,10 @@ class C {
|
||||
}
|
||||
}
|
||||
|
||||
const o = { a: 1 };
|
||||
const y = { ...o };
|
||||
const { ...x } = y;
|
||||
|
||||
// @filename: script.ts
|
||||
class A { }
|
||||
class B extends A { }
|
||||
@@ -29,4 +33,4 @@ class C {
|
||||
}
|
||||
|
||||
// @filename: tslib.d.ts
|
||||
export {}
|
||||
export {}
|
||||
|
||||
Reference in New Issue
Block a user