@interfere/types 10.2.0 → 10.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,4 +55,6 @@ export type ConsentCategory = (typeof CONSENT_CATEGORIES)[number];
55
55
  export type PluginKey = PluginManifest[number]["name"];
56
56
  export type GateableCategory = Exclude<ConsentCategory, "necessary">;
57
57
  export type ConsentState = AtLeastOne<Record<GateableCategory, boolean>>;
58
+ /** Current permission for analytics and replay, together or by category. */
59
+ export type ConsentInput = boolean | ConsentState;
58
60
  //#endregion
@@ -55,4 +55,6 @@ export type ConsentCategory = (typeof CONSENT_CATEGORIES)[number];
55
55
  export type PluginKey = PluginManifest[number]["name"];
56
56
  export type GateableCategory = Exclude<ConsentCategory, "necessary">;
57
57
  export type ConsentState = AtLeastOne<Record<GateableCategory, boolean>>;
58
+ /** Current permission for analytics and replay, together or by category. */
59
+ export type ConsentInput = boolean | ConsentState;
58
60
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interfere/types",
3
- "version": "10.2.0",
3
+ "version": "10.2.1",
4
4
  "description": "TypeScript & Zod types for Interfere",
5
5
  "keywords": [
6
6
  "logging",
@@ -145,8 +145,8 @@
145
145
  },
146
146
  "scripts": {
147
147
  "build": "tsdown",
148
- "test": "vitest run",
149
- "typecheck": "tsc --noEmit"
148
+ "test": "vitest run --config ../../../../vitest.config.ts",
149
+ "typecheck": "bun check"
150
150
  },
151
151
  "dependencies": {
152
152
  "zod": "^4.5.4"