Skip to content

Commit

Permalink
Merge pull request #517 from DataDog/louiszawadzki/fix-typescript
Browse files Browse the repository at this point in the history
Fix typescript errors
  • Loading branch information
louiszawadzki authored Aug 3, 2023
2 parents c0eeb5c + ab57ea5 commit 1775de5
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions packages/core/src/sdk/EventMappers/utils/deepClone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,23 @@
* Copyright 2016-Present Datadog, Inc.
*/

const isDate = (type: string, object: unknown): object is Date => {
const isDate = (type: string, _: unknown): _ is Date => {
return type === 'Date';
};

const isArray = (type: string, object: unknown): object is unknown[] => {
const isArray = (type: string, _: unknown): _ is unknown[] => {
return type === 'Array';
};

const isObject = (
type: string,
object: unknown
): object is Record<string, unknown> => {
const isObject = (type: string, _: unknown): _ is Record<string, unknown> => {
return type === 'Object';
};

const isSet = (type: string, object: unknown): object is Set<unknown> => {
const isSet = (type: string, _: unknown): _ is Set<unknown> => {
return type === 'Set';
};

const isMap = (
type: string,
object: unknown
): object is Map<string, unknown> => {
const isMap = (type: string, _: unknown): _ is Map<string, unknown> => {
return type === 'Map';
};

Expand Down

0 comments on commit 1775de5

Please sign in to comment.