6 lines
241 B
JavaScript
6 lines
241 B
JavaScript
//// [typeofInObjectLiteralType.ts]
|
|
var a: { b: number; c: typeof b }; // Should give error for attempting to use type query on b.
|
|
|
|
//// [typeofInObjectLiteralType.js]
|
|
var a; // Should give error for attempting to use type query on b.
|