refactor: Make no-extra-parens rule stricter

This commit is contained in:
Joachim Van Herwegen
2024-03-12 14:44:09 +01:00
parent c4df54dd88
commit 28af181eee
5 changed files with 13 additions and 5 deletions

View File

@@ -12,5 +12,5 @@ export interface ResourceIdentifier {
* Determines whether the object is a {@link ResourceIdentifier}.
*/
export function isResourceIdentifier(object: unknown): object is ResourceIdentifier {
return Boolean(object) && (typeof (object as ResourceIdentifier).path === 'string');
return Boolean(object) && typeof (object as ResourceIdentifier).path === 'string';
}