@effect/platform-browser 4.0.0-beta.2 → 4.0.0-beta.20

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.
@@ -16,7 +16,7 @@ export interface Clipboard {
16
16
  readonly writeBlob: (blob: Blob) => Effect.Effect<void, ClipboardError>;
17
17
  readonly clear: Effect.Effect<void, ClipboardError>;
18
18
  }
19
- declare const ClipboardError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
19
+ declare const ClipboardError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").MatchRecord<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }, void, { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
20
20
  readonly _tag: "ClipboardError";
21
21
  } & Readonly<A>;
22
22
  /**
@@ -24,7 +24,7 @@ export interface Geolocation {
24
24
  * @category Service
25
25
  */
26
26
  export declare const Geolocation: ServiceMap.Service<Geolocation, Geolocation>;
27
- declare const GeolocationError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => Cause.YieldableError & {
27
+ declare const GeolocationError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").MatchRecord<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }, void, { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => Cause.YieldableError & {
28
28
  readonly _tag: "GeolocationError";
29
29
  } & Readonly<A>;
30
30
  /**
@@ -40,7 +40,7 @@ export declare class GeolocationError extends GeolocationError_base<{
40
40
  readonly [ErrorTypeId] = "~@effect/platform-browser/Geolocation/GeolocationError";
41
41
  get message(): string;
42
42
  }
43
- declare const PositionUnavailable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => Cause.YieldableError & {
43
+ declare const PositionUnavailable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").MatchRecord<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }, void, { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => Cause.YieldableError & {
44
44
  readonly _tag: "PositionUnavailable";
45
45
  } & Readonly<A>;
46
46
  /**
@@ -52,7 +52,7 @@ export declare class PositionUnavailable extends PositionUnavailable_base<{
52
52
  }> {
53
53
  get message(): string;
54
54
  }
55
- declare const PermissionDenied_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => Cause.YieldableError & {
55
+ declare const PermissionDenied_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").MatchRecord<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }, void, { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => Cause.YieldableError & {
56
56
  readonly _tag: "PermissionDenied";
57
57
  } & Readonly<A>;
58
58
  /**
@@ -64,7 +64,7 @@ export declare class PermissionDenied extends PermissionDenied_base<{
64
64
  }> {
65
65
  get message(): string;
66
66
  }
67
- declare const Timeout_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => Cause.YieldableError & {
67
+ declare const Timeout_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").MatchRecord<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }, void, { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => Cause.YieldableError & {
68
68
  readonly _tag: "Timeout";
69
69
  } & Readonly<A>;
70
70
  /**
@@ -19,7 +19,7 @@ export interface Permissions {
19
19
  name: Name;
20
20
  }, PermissionsError>;
21
21
  }
22
- declare const PermissionsInvalidStateError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
22
+ declare const PermissionsInvalidStateError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").MatchRecord<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }, void, { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
23
23
  readonly _tag: "InvalidStateError";
24
24
  } & Readonly<A>;
25
25
  /**
@@ -31,7 +31,7 @@ export declare class PermissionsInvalidStateError extends PermissionsInvalidStat
31
31
  }> {
32
32
  get message(): string;
33
33
  }
34
- declare const PermissionsTypeError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
34
+ declare const PermissionsTypeError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").MatchRecord<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }, void, { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
35
35
  readonly _tag: "TypeError";
36
36
  } & Readonly<A>;
37
37
  /**
@@ -48,7 +48,7 @@ export declare class PermissionsTypeError extends PermissionsTypeError_base<{
48
48
  * @category errors
49
49
  */
50
50
  export type PermissionsErrorReason = PermissionsInvalidStateError | PermissionsTypeError;
51
- declare const PermissionsError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
51
+ declare const PermissionsError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").MatchRecord<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }, void, { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
52
52
  readonly _tag: "PermissionsError";
53
53
  } & Readonly<A>;
54
54
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@effect/platform-browser",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.2",
4
+ "version": "4.0.0-beta.20",
5
5
  "license": "MIT",
6
6
  "description": "Platform specific implementations for the browser",
7
7
  "homepage": "https://effect.website",
@@ -45,11 +45,11 @@
45
45
  "provenance": true
46
46
  },
47
47
  "peerDependencies": {
48
- "effect": "^4.0.0-beta.2"
48
+ "effect": "^4.0.0-beta.20"
49
49
  },
50
50
  "devDependencies": {
51
51
  "mock-xmlhttprequest": "^8.4.1",
52
- "effect": "^4.0.0-beta.2"
52
+ "effect": "^4.0.0-beta.20"
53
53
  },
54
54
  "dependencies": {
55
55
  "multipasta": "^0.2.7"