Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #265 from romansp/typescript-config-set-field-value
Browse files Browse the repository at this point in the history
Update typings for `set` function value argument
  • Loading branch information
MatteoGabriele authored Dec 17, 2019
2 parents 7986a44 + 3fd49cf commit 809f633
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions vue-analytics.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ declare module 'vue-analytics' {
(route: VueRouter): void;
}

interface SetFieldValue {
field: string;
value: any;
}

interface setFn {
(fieldName: string, fieldValue: string): void;
(options: {
field: string, value: string
}): void;
(fieldName: string, fieldValue: any): void;
(options: Record<string, any>): void;
}

interface socialFn {
Expand Down Expand Up @@ -229,7 +232,7 @@ declare module 'vue-analytics' {
disabled?: boolean | (() => boolean) | (() => Promise<boolean>) | Promise<boolean>,
checkDuplicatedScript?: boolean,
disableScriptLoader?: boolean
set?: { field: string, value: string }[],
set?: SetFieldValue[],
commands?: any,
beforeFirstHit?: () => void,
ready?: () => void
Expand Down

0 comments on commit 809f633

Please sign in to comment.