15 lines
No EOL
293 B
TypeScript
15 lines
No EOL
293 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @allowJs: true
|
|
// @Filename: a.js
|
|
//// type a = b;
|
|
|
|
verify.getSemanticDiagnostics(`[
|
|
{
|
|
"message": "'type aliases' can only be used in a .ts file.",
|
|
"start": 5,
|
|
"length": 1,
|
|
"category": "error",
|
|
"code": 8008
|
|
}
|
|
]`); |