diff --git a/package.json b/package.json index fa2c314..1b9b0ae 100644 --- a/package.json +++ b/package.json @@ -47,4 +47,4 @@ "typescript": "^4.5.5" }, "packageManager": "yarn@3.2.0" -} \ No newline at end of file +} diff --git a/src/core.ts b/src/core.ts index 858213e..4d1c331 100644 --- a/src/core.ts +++ b/src/core.ts @@ -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 = { @@ -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'); @@ -371,7 +371,7 @@ export type TrackingConsent = t.TypeOf; 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; @@ -399,7 +399,9 @@ const CoreTrackingConsentDetails = t.intersection([ ]); /** Type override */ -export type CoreTrackingConsentDetails = t.TypeOf; +export type CoreTrackingConsentDetails = t.TypeOf< + typeof CoreTrackingConsentDetails +>; export const TrackingConsentDetails = t.intersection([ CoreTrackingConsentDetails, @@ -427,7 +429,7 @@ export const TrackingConsentOptionalData = t.partial({ export const FullTrackingConsentDetails = t.intersection([ TrackingConsentDetails, - TrackingConsentOptionalData + TrackingConsentOptionalData, ]); /** Override types. */