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

Commit

Permalink
fix error type exports (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Oct 3, 2023
1 parent 0afe71a commit d0d5458
Show file tree
Hide file tree
Showing 13 changed files with 91 additions and 75 deletions.
7 changes: 7 additions & 0 deletions .changeset/friendly-islands-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@effect/platform-browser": patch
"@effect/platform-node": patch
"@effect/platform-bun": patch
---

fix error type exports
16 changes: 8 additions & 8 deletions docs/platform-browser/Error.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Added in v1.0.0

- [error](#error)
- [BadArgument](#badargument)
- [PlatformError](#platformerror)
- [SystemError](#systemerror)
- [model](#model)
- [PlatformError](#platformerror)
- [SystemErrorReason](#systemerrorreason)
- [type id](#type-id)
- [PlatformErrorTypeId](#platformerrortypeid)
Expand All @@ -35,34 +35,34 @@ export declare const BadArgument: (props: Omit<BadArgument, PlatformError.Provid
Added in v1.0.0
## PlatformError
## SystemError
**Signature**
```ts
export declare const PlatformError: any
export declare const SystemError: (props: Omit<SystemError, PlatformError.ProvidedFields>) => SystemError
```
Added in v1.0.0
## SystemError
# model
## PlatformError
**Signature**
```ts
export declare const SystemError: (props: Omit<SystemError, PlatformError.ProvidedFields>) => SystemError
export declare const PlatformError: PlatformError
```
Added in v1.0.0
# model
## SystemErrorReason
**Signature**
```ts
export declare const SystemErrorReason: any
export declare const SystemErrorReason: SystemErrorReason
```
Added in v1.0.0
Expand Down
16 changes: 8 additions & 8 deletions docs/platform-bun/Error.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Added in v1.0.0

- [error](#error)
- [BadArgument](#badargument)
- [PlatformError](#platformerror)
- [SystemError](#systemerror)
- [model](#model)
- [PlatformError](#platformerror)
- [SystemErrorReason](#systemerrorreason)
- [type id](#type-id)
- [PlatformErrorTypeId](#platformerrortypeid)
Expand All @@ -35,34 +35,34 @@ export declare const BadArgument: (props: Omit<BadArgument, PlatformError.Provid
Added in v1.0.0
## PlatformError
## SystemError
**Signature**
```ts
export declare const PlatformError: any
export declare const SystemError: (props: Omit<SystemError, PlatformError.ProvidedFields>) => SystemError
```
Added in v1.0.0
## SystemError
# model
## PlatformError
**Signature**
```ts
export declare const SystemError: (props: Omit<SystemError, PlatformError.ProvidedFields>) => SystemError
export declare const PlatformError: PlatformError
```
Added in v1.0.0
# model
## SystemErrorReason
**Signature**
```ts
export declare const SystemErrorReason: any
export declare const SystemErrorReason: SystemErrorReason
```
Added in v1.0.0
Expand Down
16 changes: 8 additions & 8 deletions docs/platform-node/Error.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Added in v1.0.0

- [error](#error)
- [BadArgument](#badargument)
- [PlatformError](#platformerror)
- [SystemError](#systemerror)
- [model](#model)
- [PlatformError](#platformerror)
- [SystemErrorReason](#systemerrorreason)
- [type id](#type-id)
- [PlatformErrorTypeId](#platformerrortypeid)
Expand All @@ -35,34 +35,34 @@ export declare const BadArgument: (props: Omit<BadArgument, PlatformError.Provid
Added in v1.0.0
## PlatformError
## SystemError
**Signature**
```ts
export declare const PlatformError: any
export declare const SystemError: (props: Omit<SystemError, PlatformError.ProvidedFields>) => SystemError
```
Added in v1.0.0
## SystemError
# model
## PlatformError
**Signature**
```ts
export declare const SystemError: (props: Omit<SystemError, PlatformError.ProvidedFields>) => SystemError
export declare const PlatformError: PlatformError
```
Added in v1.0.0
# model
## SystemErrorReason
**Signature**
```ts
export declare const SystemErrorReason: any
export declare const SystemErrorReason: SystemErrorReason
```
Added in v1.0.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"ultra-runner": "^3.10.5",
"vite": "^4.4.9",
"vite": "^4.4.10",
"vitest": "0.34.6"
},
"pnpm": {
Expand Down
4 changes: 2 additions & 2 deletions packages/platform-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"@effect/platform": "workspace:^"
},
"devDependencies": {
"effect": "2.0.0-next.42",
"effect": "2.0.0-next.44",
"vitest-localstorage-mock": "^0.0.1"
},
"peerDependencies": {
"effect": "^2.0.0-next.42"
"effect": "^2.0.0-next.44"
},
"files": [
"src",
Expand Down
15 changes: 9 additions & 6 deletions packages/platform-browser/src/Error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ export {
* @category error
*/
BadArgument,
/**
* @since 1.0.0
* @category error
*/
PlatformError,
/**
* @since 1.0.0
* @category type id
Expand All @@ -22,7 +17,15 @@ export {
* @since 1.0.0
* @category error
*/
SystemError,
SystemError
} from "@effect/platform/Error"

export type {
/**
* @since 1.0.0
* @category model
*/
PlatformError,
/**
* @since 1.0.0
* @category model
Expand Down
4 changes: 2 additions & 2 deletions packages/platform-bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"devDependencies": {
"@effect/schema": "^0.39.2",
"bun-types": "^1.0.3",
"effect": "2.0.0-next.42"
"effect": "2.0.0-next.44"
},
"peerDependencies": {
"effect": "^2.0.0-next.42"
"effect": "^2.0.0-next.44"
},
"files": [
"src",
Expand Down
15 changes: 9 additions & 6 deletions packages/platform-bun/src/Error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ export {
* @category error
*/
BadArgument,
/**
* @since 1.0.0
* @category error
*/
PlatformError,
/**
* @since 1.0.0
* @category type id
Expand All @@ -22,7 +17,15 @@ export {
* @since 1.0.0
* @category error
*/
SystemError,
SystemError
} from "@effect/platform/Error"

export type {
/**
* @since 1.0.0
* @category model
*/
PlatformError,
/**
* @since 1.0.0
* @category model
Expand Down
4 changes: 2 additions & 2 deletions packages/platform-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"@effect/schema": "^0.39.2",
"@types/busboy": "^1.5.1",
"@types/mime": "^3.0.2",
"effect": "2.0.0-next.42"
"effect": "2.0.0-next.44"
},
"peerDependencies": {
"effect": "^2.0.0-next.42"
"effect": "^2.0.0-next.44"
},
"dependencies": {
"@effect/platform": "workspace:^",
Expand Down
15 changes: 9 additions & 6 deletions packages/platform-node/src/Error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ export {
* @category error
*/
BadArgument,
/**
* @since 1.0.0
* @category error
*/
PlatformError,
/**
* @since 1.0.0
* @category type id
Expand All @@ -22,7 +17,15 @@ export {
* @since 1.0.0
* @category error
*/
SystemError,
SystemError
} from "@effect/platform/Error"

export type {
/**
* @since 1.0.0
* @category model
*/
PlatformError,
/**
* @since 1.0.0
* @category model
Expand Down
4 changes: 2 additions & 2 deletions packages/platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"devDependencies": {
"@effect/schema": "^0.39.2",
"@types/path-browserify": "^1.0.0",
"effect": "2.0.0-next.42"
"effect": "2.0.0-next.44"
},
"peerDependencies": {
"@effect/schema": "^0.39.1",
"effect": "^2.0.0-next.42"
"effect": "^2.0.0-next.44"
},
"files": [
"src",
Expand Down
Loading

0 comments on commit d0d5458

Please sign in to comment.