-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixes deprecate call to include for and since props
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import '@ember/debug'; | ||
|
||
export type DeprecationStages = 'available' | 'enabled'; | ||
|
||
declare module '@ember/debug' { | ||
export function deprecate( | ||
message: string, | ||
test: boolean, | ||
options: { | ||
/** | ||
* A unique id for this deprecation. The id can be used by Ember debugging | ||
* tools to change the behavior (raise, log or silence) for that specific | ||
* deprecation. The id should be namespaced by dots, e.g. | ||
* `"view.helper.select"`. | ||
*/ | ||
id: string; | ||
/** | ||
* The version of Ember when this deprecation warning will be removed. | ||
*/ | ||
until: string; | ||
/** | ||
* A namespace for the deprecation, usually the package name | ||
*/ | ||
for: string; | ||
/** | ||
* Describes when the deprecation became available and enabled | ||
*/ | ||
since: Partial<Record<DeprecationStages, string>>; | ||
/** | ||
* An optional url to the transition guide on the emberjs.com website. | ||
*/ | ||
url?: string | undefined; | ||
} | ||
): void; | ||
} |