File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11// BASELINE CODE FORKED FROM https://github.com/deebloo/ts-results
2- import { toString } from "./util.js" ;
2+ import { toString , wait } from "./util.js" ;
33
44interface BaseResult < T , E >
55 extends Iterable < T extends Iterable < infer U > ? U : never > {
@@ -277,7 +277,3 @@ export namespace Result {
277277 return val instanceof Err || val instanceof Ok ;
278278 }
279279}
280-
281- function wait ( time : number ) {
282- return new Promise ( ( resolve ) => setTimeout ( resolve , time ) ) ;
283- }
Original file line number Diff line number Diff line change @@ -7,3 +7,7 @@ export function toString(val: unknown): string {
77 }
88 return value ;
99}
10+
11+ export function wait ( time : number ) {
12+ return new Promise ( ( resolve ) => setTimeout ( resolve , time ) ) ;
13+ }
You can’t perform that action at this time.
0 commit comments