mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-26 00:36:29 -05:00
Add new method on interface Boolean to ensure it is not assignable from other types
This commit is contained in:
2
src/lib/core.d.ts
vendored
2
src/lib/core.d.ts
vendored
@@ -426,6 +426,8 @@ interface StringConstructor {
|
||||
declare var String: StringConstructor;
|
||||
|
||||
interface Boolean {
|
||||
/** Returns the primitive value of the specified object. */
|
||||
valueOf(): boolean;
|
||||
}
|
||||
|
||||
interface BooleanConstructor {
|
||||
|
||||
Reference in New Issue
Block a user