mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Use to indicate a type error
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user