Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix lint #1355

Merged
merged 1 commit into from Jan 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion metapackages/auto-instrumentations-node/src/utils.ts
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
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
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
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
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