File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
packages/core/src/sdk/EventMappers/utils Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 4
4
* Copyright 2016-Present Datadog, Inc.
5
5
*/
6
6
7
- const isDate = ( type : string , object : unknown ) : object is Date => {
7
+ const isDate = ( type : string , _ : unknown ) : _ is Date => {
8
8
return type === 'Date' ;
9
9
} ;
10
10
11
- const isArray = ( type : string , object : unknown ) : object is unknown [ ] => {
11
+ const isArray = ( type : string , _ : unknown ) : _ is unknown [ ] => {
12
12
return type === 'Array' ;
13
13
} ;
14
14
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 > => {
19
16
return type === 'Object' ;
20
17
} ;
21
18
22
- const isSet = ( type : string , object : unknown ) : object is Set < unknown > => {
19
+ const isSet = ( type : string , _ : unknown ) : _ is Set < unknown > => {
23
20
return type === 'Set' ;
24
21
} ;
25
22
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 > => {
30
24
return type === 'Map' ;
31
25
} ;
32
26
You can’t perform that action at this time.
0 commit comments