This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deprecation: Rewrite and enhance (#2748)
Rewrite to walker function. Use TypeScript's JsDoc parser [enhancement] `deprecation`: error message includes deprecation text if available
- Loading branch information
Showing
5 changed files
with
119 additions
and
67 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,14 @@ | ||
/** @deprecated reason */ | ||
export function other() {} | ||
|
||
/** @deprecated */ | ||
export let other2: Function; | ||
|
||
/** This one has @deprecated somewhere in it's jsdoc */ | ||
export let notDeprecated: any; | ||
/* @deprecated but it's no JsDoc */ | ||
export let notDeprecated2: any; | ||
|
||
/** @deprecated deprecated default export */ | ||
let def = ""; | ||
export default def; |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
/** @deprecated */ | ||
let x = ""; | ||
export = x; |
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