Use to indicate a type error

This commit is contained in:
Retsam
2018-06-22 13:30:11 -04:00
parent 500c118b36
commit d46b8903fc
+2 -1
View File
@@ -575,7 +575,8 @@ describe('Templating', function() {
// Now set the observable to null and check it's treated like an empty array
// (because how else should null be interpreted?)
myArray(null as any); // DefinitelyTyped note: while KO accepts this, I wouldn't consider it a well-typed usage of the API
// DefinitelyTyped note: while KO accepts this, I wouldn't consider it a well-typed usage of the API
myArray(null); // $ExpectError
expect(testNode.childNodes[0].childNodes.length).toEqual(0);
});