chore: Enable noImplicitAny across the codebase (#2667)

This commit is contained in:
Dermot Duffy
2026-08-09 13:22:57 -07:00
committed by GitHub
parent 6807fd7690
commit a8ce6acb44
27 changed files with 311 additions and 180 deletions
+6 -4
View File
@@ -143,13 +143,15 @@ export class View {
return this;
}
public removeContextProperty(
contextKey: keyof ViewContext,
removeKey: PropertyKey,
public removeContextProperty<T extends keyof ViewContext>(
contextKey: T,
removeKey: keyof NonNullable<ViewContext[T]>,
): View {
const contextObj = this.context?.[contextKey];
if (contextObj) {
delete contextObj[removeKey];
// Cannot use a regular 'delete' here as TypeScript cannot directly index
// `contextObj` while its type is still generic.
Reflect.deleteProperty(contextObj, removeKey);
}
return this;
}