Skip to content

Commit

Permalink
chore: fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Aug 25, 2024
1 parent f908010 commit 99042bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/runtime/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/ban-types */

import type { ModuleOptions } from '../module'

declare module '@nuxt/schema' {
Expand Down Expand Up @@ -53,6 +50,7 @@ export interface GtagCommands {
get: [
targetId: string,
fieldName: FieldNames | string,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
callback?: (field?: string | CustomParams) => any,
]
consent: [consentArg: ConsentArg | (string & {}), consentParams: ConsentParams]
Expand All @@ -62,6 +60,7 @@ export interface Gtag {
<Command extends keyof GtagCommands>(command: Command, ...args: GtagCommands[Command]): void
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type CustomParams = Record<string, any>

export interface ConfigParams {
Expand Down

0 comments on commit 99042bc

Please sign in to comment.