add argument for commitCrime focus

This commit is contained in:
Olivier Gagnon
2022-07-19 22:30:07 -04:00
parent 810f3a87b9
commit 83c26903c0
6 changed files with 52 additions and 21 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ export namespace Reviver {
// Returns: The structure (which will then be turned into a string
// as part of the JSON.stringify algorithm)
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function Generic_toJSON(ctorName: string, obj: any, keys?: string[]): IReviverValue {
export function Generic_toJSON(ctorName: string, obj: Record<string, any>, keys?: string[]): IReviverValue {
if (!keys) {
keys = Object.keys(obj); // Only "own" properties are included
}