Skip to content

Commit ab57ea5

Browse files
author
louiszawadzki
committed
Fix typescript errors
1 parent c0eeb5c commit ab57ea5

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

packages/core/src/sdk/EventMappers/utils/deepClone.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,23 @@
44
* Copyright 2016-Present Datadog, Inc.
55
*/
66

7-
const isDate = (type: string, object: unknown): object is Date => {
7+
const isDate = (type: string, _: unknown): _ is Date => {
88
return type === 'Date';
99
};
1010

11-
const isArray = (type: string, object: unknown): object is unknown[] => {
11+
const isArray = (type: string, _: unknown): _ is unknown[] => {
1212
return type === 'Array';
1313
};
1414

15-
const isObject = (
16-
type: string,
17-
object: unknown
18-
): object is Record<string, unknown> => {
15+
const isObject = (type: string, _: unknown): _ is Record<string, unknown> => {
1916
return type === 'Object';
2017
};
2118

22-
const isSet = (type: string, object: unknown): object is Set<unknown> => {
19+
const isSet = (type: string, _: unknown): _ is Set<unknown> => {
2320
return type === 'Set';
2421
};
2522

26-
const isMap = (
27-
type: string,
28-
object: unknown
29-
): object is Map<string, unknown> => {
23+
const isMap = (type: string, _: unknown): _ is Map<string, unknown> => {
3024
return type === 'Map';
3125
};
3226

0 commit comments

Comments
 (0)