File tree Expand file tree Collapse file tree 2 files changed +47
-12
lines changed
packages/tinytower-sdk/src Expand file tree Collapse file tree 2 files changed +47
-12
lines changed Original file line number Diff line number Diff line change 1- import * as PlatformError from "@effect/platform/Error" ;
2- import * as Predicate from "effect/Predicate" ;
1+ import * as internal from "./internal/nimblebitError.ts" ;
32
43/**
54 * @since 1.0.0
6- * @category Error
5+ * @category Errors
76 */
8- export const NimblebitErrorTypeId = Symbol . for ( "@tinyburg/tinytower-sdk/NimblebitError" ) ;
7+ export const NimblebitErrorTypeId : unique symbol = internal . NimblebitErrorTypeId ;
98
109/**
1110 * @since 1.0.0
12- * @category Error
11+ * @category Errors
1312 */
14- export const isNimblebitError = ( u : unknown ) : u is NimblebitError => Predicate . hasProperty ( u , NimblebitErrorTypeId ) ;
13+ export type NimblebitErrorTypeId = typeof NimblebitErrorTypeId ;
1514
1615/**
1716 * @since 1.0.0
18- * @category Error
17+ * @category Errors
1918 */
20- export class NimblebitError extends PlatformError . TypeIdError ( NimblebitErrorTypeId , "NimblebitError" ) < {
21- method : string ;
22- module : string ;
23- cause : unknown ;
24- } > { }
19+ export const isNimblebitError : ( u : unknown ) => u is NimblebitError = internal . isNimblebitError ;
20+
21+ /**
22+ * @since 1.0.0
23+ * @category Errors
24+ */
25+ export type NimblebitError = internal . NimblebitError ;
26+
27+ /**
28+ * @since 1.0.0
29+ * @category Errors
30+ */
31+ export const NimblebitError : typeof internal . NimblebitError = internal . NimblebitError ;
Original file line number Diff line number Diff line change 1+ import type * as NimblebitErrorType from "../NimblebitError.ts" ;
2+
3+ import * as PlatformError from "@effect/platform/Error" ;
4+ import * as Predicate from "effect/Predicate" ;
5+
6+ /**
7+ * @since 1.0.0
8+ * @category Error
9+ */
10+ export const NimblebitErrorTypeId : NimblebitErrorType . NimblebitErrorTypeId = Symbol . for (
11+ "@tinyburg/tinytower-sdk/NimblebitError"
12+ ) as NimblebitErrorType . NimblebitErrorTypeId ;
13+
14+ /**
15+ * @since 1.0.0
16+ * @category Error
17+ */
18+ export const isNimblebitError = ( u : unknown ) : u is NimblebitError => Predicate . hasProperty ( u , NimblebitErrorTypeId ) ;
19+
20+ /**
21+ * @since 1.0.0
22+ * @category Error
23+ */
24+ export class NimblebitError extends PlatformError . TypeIdError ( NimblebitErrorTypeId , "NimblebitError" ) < {
25+ method : string ;
26+ module : string ;
27+ cause : unknown ;
28+ } > { }
You can’t perform that action at this time.
0 commit comments