mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
12 lines
230 B
JavaScript
12 lines
230 B
JavaScript
var o = require('./proto');
|
|
|
|
o.z = 0;
|
|
var x:string = o.x;
|
|
|
|
var Bar = require('./function');
|
|
var a = new Bar(234);
|
|
a.x = 123;
|
|
a.y = 'abc'; // error, needs to be declared in Bar's constructor
|
|
(a.getX(): number);
|
|
(a.getY(): string);
|