Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherminh committed Nov 2, 2023
1 parent 9a1ab13 commit 7387307
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
"typescript": "^4.5.5"
},
"packageManager": "yarn@3.2.0"
}
}
18 changes: 10 additions & 8 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export type Logger = {
*/
tag(logTag: string, callback?: () => any): void; // eslint-disable-line @typescript-eslint/no-explicit-any
} & {
/** Log emitter (e.g. `logger.log()`) */
[method in LogLevel]: LogEmitter;
};
/** Log emitter (e.g. `logger.log()`) */
[method in LogLevel]: LogEmitter;
};

/** AirgapAuth auth options */
export type AirgapAuthMap = {
Expand Down Expand Up @@ -234,8 +234,8 @@ export type Removable = {
export type Stringifiable =
| string
| (string & {
toString(): string;
});
toString(): string;
});

/** Special `defaultConsent` automatic opt-out value for any potential reason */
export const AutoOptOut = t.literal('Auto');
Expand Down Expand Up @@ -371,7 +371,7 @@ export type TrackingConsent = t.TypeOf<typeof TrackingConsent>;

export const TrackingConsentWithNulls = t.record(
t.string,
t.union([t.boolean, t.undefined, t.null])
t.union([t.boolean, t.undefined, t.null]),
);
/** Type override */
export type TrackingConsentWithNulls = t.TypeOf<typeof TrackingConsent>;
Expand Down Expand Up @@ -399,7 +399,9 @@ const CoreTrackingConsentDetails = t.intersection([
]);

/** Type override */
export type CoreTrackingConsentDetails = t.TypeOf<typeof CoreTrackingConsentDetails>;
export type CoreTrackingConsentDetails = t.TypeOf<
typeof CoreTrackingConsentDetails
>;

export const TrackingConsentDetails = t.intersection([
CoreTrackingConsentDetails,
Expand Down Expand Up @@ -427,7 +429,7 @@ export const TrackingConsentOptionalData = t.partial({

export const FullTrackingConsentDetails = t.intersection([
TrackingConsentDetails,
TrackingConsentOptionalData
TrackingConsentOptionalData,
]);

/** Override types. */
Expand Down

0 comments on commit 7387307

Please sign in to comment.