11 lines
No EOL
1,009 B
Text
11 lines
No EOL
1,009 B
Text
==== tests/cases/compiler/errorMessageOnObjectLiteralType.ts (2 errors) ====
|
|
var x: {
|
|
a: string;
|
|
b: number;
|
|
};
|
|
x.getOwnPropertyNamess();
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
!!! Property 'getOwnPropertyNamess' does not exist on type '{ a: string; b: number; }'.
|
|
Object.getOwnPropertyNamess(null);
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
!!! Property 'getOwnPropertyNamess' does not exist on type '{ (): any; (value: any): any; new (value?: any): Object; 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): boolean; isFrozen(o: any): boolean; isExtensible(o: any): boolean; keys(o: any): string[]; }'. |