-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint-config): enable sonar/deprecation to replace tslint's
- Loading branch information
Showing
10 changed files
with
166 additions
and
84 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
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
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
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 |
---|---|---|
@@ -1 +1,43 @@ | ||
/** | ||
* @deprecated This has been deprecated, no not use it | ||
*/ | ||
export const content = 'Hello World' | ||
|
||
export interface PartialObserver<T> { | ||
value: T | ||
} | ||
|
||
export interface Subscription { | ||
unsubscribe(): void | ||
} | ||
|
||
export declare class TestCase<T = unknown> { | ||
subscribe(observer?: PartialObserver<T>): Subscription | ||
/** @deprecated Use an observer instead of a complete callback */ | ||
subscribe( | ||
next: null | undefined, | ||
error: null | undefined, | ||
complete: () => void, | ||
): Subscription | ||
|
||
/** @deprecated Use an observer instead of an error callback */ | ||
subscribe( | ||
next: null | undefined, | ||
error: (error: unknown) => void, | ||
complete?: () => void, | ||
): Subscription | ||
|
||
/** @deprecated Use an observer instead of a complete callback */ | ||
subscribe( | ||
// eslint-disable-next-line @typescript-eslint/unified-signatures | ||
next: (value: T) => void, | ||
error: null | undefined, | ||
complete: () => void, | ||
): Subscription | ||
|
||
subscribe( | ||
next?: (value: T) => void, | ||
error?: (error: unknown) => void, | ||
complete?: () => void, | ||
): Subscription | ||
} |
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
Oops, something went wrong.