We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0addf8 commit 1f66a82Copy full SHA for 1f66a82
type-definitions/tests/record.js
@@ -18,6 +18,10 @@ let originNew = new PointNew();
18
let geo = GeoPoint({lat:34});
19
// $ExpectError
20
const mistake = Point2({x:'string'});
21
+// $ExpectError - 'new Record' instantiated with invalid type
22
+const mistakeNewRecord = PointNew({x:'string'});
23
+// $ExpectError - 'Record' instantiated with invalid type using 'new'
24
+const mistakeNewInstance = new Point2({x:'string'});
25
origin3 = GeoPoint({lat:34})
26
geo = Point3({});
27
0 commit comments