Skip to content

Commit

Permalink
ci: fix lint (open-telemetry#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
blumamir authored Jan 15, 2023
1 parent 8b8bfeb commit 714e6c1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion metapackages/auto-instrumentations-node/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const InstrumentationMap = {
type ConfigArg<T> = T extends new (...args: infer U) => unknown ? U[0] : never;
export type InstrumentationConfigMap = {
[Name in keyof typeof InstrumentationMap]?: ConfigArg<
typeof InstrumentationMap[Name]
(typeof InstrumentationMap)[Name]
>;
};

Expand Down
2 changes: 1 addition & 1 deletion metapackages/auto-instrumentations-web/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const InstrumentationMap = {
type ConfigArg<T> = T extends new (...args: infer U) => unknown ? U[0] : never;
export type InstrumentationConfigMap = {
[Name in keyof typeof InstrumentationMap]?: ConfigArg<
typeof InstrumentationMap[Name]
(typeof InstrumentationMap)[Name]
>;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ type DataloaderInternal = typeof Dataloader.prototype & {
_batch: { spanLinks?: Link[] } | null;
};

type LoadFn = typeof Dataloader.prototype['load'];
type LoadManyFn = typeof Dataloader.prototype['loadMany'];
type LoadFn = (typeof Dataloader.prototype)['load'];
type LoadManyFn = (typeof Dataloader.prototype)['loadMany'];

export class DataloaderInstrumentation extends InstrumentationBase {
constructor(config: DataloaderInstrumentationConfig = {}) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/node/instrumentation-fs/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type FunctionPropertyNames<T> = {
export type FunctionProperties<T> = Pick<T, FunctionPropertyNames<T>>;

export type FMember = FunctionPropertyNames<typeof fs>;
export type FPMember = FunctionPropertyNames<typeof fs['promises']>;
export type FPMember = FunctionPropertyNames<(typeof fs)['promises']>;

export type CreateHook = (
functionName: FMember | FPMember,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import { InstrumentationConfig } from '@opentelemetry/instrumentation';
import type * as graphqlTypes from 'graphql';
import type * as api from '@opentelemetry/api';
import type { PromiseOrValue } from 'graphql/jsutils/PromiseOrValue';
import { DocumentNode } from 'graphql/language/ast';
import {
import type { DocumentNode } from 'graphql/language/ast';
import type {
GraphQLFieldResolver,
GraphQLTypeResolver,
} from 'graphql/type/definition';
Expand Down

0 comments on commit 714e6c1

Please sign in to comment.