mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Move deprecated jsdoc tags to compat/deprecations.ts
This commit is contained in:
parent
9d5cd280ef
commit
189e883cb9
@ -1321,4 +1321,24 @@ namespace ts {
|
||||
});
|
||||
|
||||
// #endregion Renamed node Tests
|
||||
|
||||
// DEPRECATION: Renamed `Map` and `ReadonlyMap` interfaces
|
||||
// DEPRECATION PLAN:
|
||||
// - soft: 4.0
|
||||
// - remove: TBD (will remove for at least one release before replacing with `ESMap`/`ReadonlyESMap`)
|
||||
// - replace: TBD (will eventually replace with `ESMap`/`ReadonlyESMap`)
|
||||
// #region Renamed `Map` and `ReadonlyMap` interfaces
|
||||
|
||||
/**
|
||||
* @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
|
||||
*/
|
||||
export interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use `ts.ESMap<K, V>` instead.
|
||||
*/
|
||||
export interface Map<T> extends ESMap<string, T> { }
|
||||
|
||||
// #endregion
|
||||
}
|
||||
@ -45,7 +45,6 @@ namespace ts {
|
||||
|
||||
/**
|
||||
* ES6 Map interface, only read methods included.
|
||||
* @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
|
||||
*/
|
||||
export interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
|
||||
}
|
||||
@ -57,7 +56,6 @@ namespace ts {
|
||||
|
||||
/**
|
||||
* ES6 Map interface.
|
||||
* @deprecated Use `ts.ESMap<K, V>` instead.
|
||||
*/
|
||||
export interface Map<T> extends ESMap<string, T> {
|
||||
}
|
||||
|
||||
@ -51,7 +51,6 @@ declare namespace ts {
|
||||
}
|
||||
/**
|
||||
* ES6 Map interface, only read methods included.
|
||||
* @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
|
||||
*/
|
||||
interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
|
||||
}
|
||||
@ -61,7 +60,6 @@ declare namespace ts {
|
||||
}
|
||||
/**
|
||||
* ES6 Map interface.
|
||||
* @deprecated Use `ts.ESMap<K, V>` instead.
|
||||
*/
|
||||
interface Map<T> extends ESMap<string, T> {
|
||||
}
|
||||
@ -10672,6 +10670,16 @@ declare namespace ts {
|
||||
const getMutableClone: <T extends Node>(node: T) => T;
|
||||
/** @deprecated Use `isTypeAssertionExpression` instead. */
|
||||
const isTypeAssertion: (node: Node) => node is TypeAssertion;
|
||||
/**
|
||||
* @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
|
||||
*/
|
||||
interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
|
||||
}
|
||||
/**
|
||||
* @deprecated Use `ts.ESMap<K, V>` instead.
|
||||
*/
|
||||
interface Map<T> extends ESMap<string, T> {
|
||||
}
|
||||
}
|
||||
|
||||
export = ts;
|
||||
|
||||
12
tests/baselines/reference/api/typescript.d.ts
vendored
12
tests/baselines/reference/api/typescript.d.ts
vendored
@ -51,7 +51,6 @@ declare namespace ts {
|
||||
}
|
||||
/**
|
||||
* ES6 Map interface, only read methods included.
|
||||
* @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
|
||||
*/
|
||||
interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
|
||||
}
|
||||
@ -61,7 +60,6 @@ declare namespace ts {
|
||||
}
|
||||
/**
|
||||
* ES6 Map interface.
|
||||
* @deprecated Use `ts.ESMap<K, V>` instead.
|
||||
*/
|
||||
interface Map<T> extends ESMap<string, T> {
|
||||
}
|
||||
@ -7092,6 +7090,16 @@ declare namespace ts {
|
||||
const getMutableClone: <T extends Node>(node: T) => T;
|
||||
/** @deprecated Use `isTypeAssertionExpression` instead. */
|
||||
const isTypeAssertion: (node: Node) => node is TypeAssertion;
|
||||
/**
|
||||
* @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
|
||||
*/
|
||||
interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
|
||||
}
|
||||
/**
|
||||
* @deprecated Use `ts.ESMap<K, V>` instead.
|
||||
*/
|
||||
interface Map<T> extends ESMap<string, T> {
|
||||
}
|
||||
}
|
||||
|
||||
export = ts;
|
||||
Loading…
x
Reference in New Issue
Block a user