Skip to content

Commit 57ed4d2

Browse files
committed
fix linting
1 parent 67e2daa commit 57ed4d2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/core/src/integration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export function makeIntegrationFn<
174174
// eslint-disable-next-line @typescript-eslint/no-explicit-any
175175
Fn extends (...rest: any[]) => Partial<IntegrationFnResult>,
176176
>(name: string, fn: Fn): ((...rest: Parameters<Fn>) => ReturnType<Fn> & { name: string }) & { id: string } {
177-
const patchedFn = addIdToIntegrationFnResult(name, fn);
177+
const patchedFn = addNameToIntegrationFnResult(name, fn);
178178

179179
return Object.assign(patchedFn, { id: name });
180180
}
@@ -205,7 +205,7 @@ export function convertIntegrationFnToClass<
205205
) as unknown as IntegrationClass<Integration>;
206206
}
207207

208-
function addIdToIntegrationFnResult<
208+
function addNameToIntegrationFnResult<
209209
// eslint-disable-next-line @typescript-eslint/no-explicit-any
210210
Fn extends (...rest: any[]) => Partial<IntegrationFnResult>,
211211
>(name: string, fn: Fn): (...rest: Parameters<Fn>) => ReturnType<Fn> & { name: string } {

packages/core/src/integrations/inboundfilters.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const inboundFiltersIntegration = makeIntegrationFn('InboundFilters', (options:
3535
const clientOptions = client.getOptions();
3636
const mergedOptions = _mergeOptions(options, clientOptions);
3737
return _shouldDropEvent(event, mergedOptions) ? null : event;
38-
}
39-
}
38+
},
39+
};
4040
});
4141

4242
/** Inbound filters configurable by the user */

packages/types/src/integration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ export interface IntegrationClass<T> {
1010
*/
1111
id: string;
1212

13-
new(...args: any[]): T;
13+
new (...args: any[]): T;
1414
}
1515

1616
/**
1717
* An integration in function form.
1818
* This is expected to return an integration result,
1919
* and also have a `name` property that holds the integration name (so we can e.g. filter these before actually calling them).
2020
*/
21-
export type IntegrationFn<Fn extends ((...rest: any[]) => IntegrationFnResult)> = { id: string } & Fn;
21+
export type IntegrationFn<Fn extends (...rest: any[]) => IntegrationFnResult> = { id: string } & Fn;
2222

2323
export interface IntegrationFnResult {
2424
/**

0 commit comments

Comments
 (0)