Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Object.is = function(value1: any, value2: any): boolean {
- // ....impl
- }; // ERROR : Property 'is' does not exist on type...
- declare var Object: {
- is(value1: any, value2: any): boolean;
- }
- interface _Object {
- is(value1: any, value2: any): boolean;
- }
- declare var Object: _Object;
- declare var Object: {
- new (value?: any): Object;
- (): any;
- (value: any): any;
- prototype: Object;
- getPrototypeOf(o: any): any;
- getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor;
- getOwnPropertyNames(o: any): string[];
- create(o: any, properties?: PropertyDescriptorMap): any;
- defineProperty(o: any, p: string, attributes: PropertyDescriptor): any;
- defineProperties(o: any, properties: PropertyDescriptorMap): any;
- seal(o: any): any;
- freeze(o: any): any;
- preventExtensions(o: any): any;
- isSealed(o: any): bool;
- isFrozen(o: any): bool;
- isExtensible(o: any): bool;
- keys(o: any): string[];
- }
- interface _Object {
- new (value?: any): Object;
- (): any;
- (value: any): any;
- prototype: Object;
- getPrototypeOf(o: any): any;
- getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor;
- getOwnPropertyNames(o: any): string[];
- create(o: any, properties?: PropertyDescriptorMap): any;
- defineProperty(o: any, p: string, attributes: PropertyDescriptor): any;
- defineProperties(o: any, properties: PropertyDescriptorMap): any;
- seal(o: any): any;
- freeze(o: any): any;
- preventExtensions(o: any): any;
- isSealed(o: any): bool;
- isFrozen(o: any): bool;
- isExtensible(o: any): bool;
- keys(o: any): string[];
- }
- declare var Object: _Object;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement