Skip to content

Commit c0cd117

Browse files
committed
fixes #18 - remove internal annotation on [Symbol.iterator]()
1 parent bfa1bb8 commit c0cd117

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": false,
33
"name": "typescript-result",
4-
"version": "3.4.0",
4+
"version": "3.4.1",
55
"description": "Supercharge your TypeScript error handling with a powerful Result type that transforms chaotic try-catch blocks into elegant, type-safe code.",
66
"keywords": [
77
"result",

src/result.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ export class AsyncResult<Value, Err> extends Promise<OuterResult<Value, Err>> {
158158
*/
159159
declare $inferError: Err;
160160

161-
/**
162-
* @internal
163-
*/
164161
*[Symbol.iterator](): Generator<{ error: Err; async: true }, Value, any> {
165162
return yield this as any;
166163
}
@@ -794,9 +791,6 @@ export class Result<Value, Err> {
794791
*/
795792
declare $inferError: Err;
796793

797-
/**
798-
* @internal
799-
*/
800794
*[Symbol.iterator](): Generator<{ error: Err; async: false }, Value, any> {
801795
return yield this as any;
802796
}

0 commit comments

Comments
 (0)