mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
20 lines
385 B
TypeScript
20 lines
385 B
TypeScript
// @noTypesAndSymbols: true
|
|
// @declaration: true
|
|
|
|
// @Filename: /a.ts
|
|
class A { a!: string }
|
|
export = A;
|
|
|
|
// @Filename: /b.ts
|
|
class SomeClass {}
|
|
export = SomeClass;
|
|
|
|
// @Filename: /c.ts
|
|
import type A = require('./a'); // Ok
|
|
import type = require('./b'); // Ok
|
|
|
|
A.prototype; // Error
|
|
const a: A = { a: 'a' }; // Ok
|
|
void type; // Ok
|
|
export declare const AConstructor: typeof A; // Ok
|