Add new method on interface Boolean to ensure it is not assignable from other types

This commit is contained in:
Mohamed Hegazy
2014-12-08 11:22:52 -08:00
parent 44eca093a6
commit 80c5acc04e
7 changed files with 88 additions and 3 deletions

2
src/lib/core.d.ts vendored
View File

@@ -426,6 +426,8 @@ interface StringConstructor {
declare var String: StringConstructor;
interface Boolean {
/** Returns the primitive value of the specified object. */
valueOf(): boolean;
}
interface BooleanConstructor {