d699bcdaae
* Mark properties defined in Annex B as deprecated * Tweak * Update baselines * Update fourslash tests * Add completionsStringMethods.ts test * Fix sortText value in fourslash test for deprecated tags * Update package-lock.json * Update package-lock.json * Mark Non-standard RegExp Constructor properties as deprecated * Update baselines Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
16 lines
943 B
Plaintext
16 lines
943 B
Plaintext
tests/cases/compiler/errorMessageOnObjectLiteralType.ts(5,3): error TS2339: Property 'getOwnPropertyNamess' does not exist on type '{ a: string; b: number; }'.
|
|
tests/cases/compiler/errorMessageOnObjectLiteralType.ts(6,8): error TS2551: Property 'getOwnPropertyNamess' does not exist on type 'ObjectConstructor'. Did you mean 'getOwnPropertyNames'?
|
|
|
|
|
|
==== tests/cases/compiler/errorMessageOnObjectLiteralType.ts (2 errors) ====
|
|
var x: {
|
|
a: string;
|
|
b: number;
|
|
};
|
|
x.getOwnPropertyNamess();
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2339: Property 'getOwnPropertyNamess' does not exist on type '{ a: string; b: number; }'.
|
|
Object.getOwnPropertyNamess(null);
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2551: Property 'getOwnPropertyNamess' does not exist on type 'ObjectConstructor'. Did you mean 'getOwnPropertyNames'?
|
|
!!! related TS2728 /.ts/lib.es5.d.ts:181:5: 'getOwnPropertyNames' is declared here. |