Skip to content

Commit

Permalink
Rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiac committed Nov 15, 2023
1 parent e33ce93 commit ed0eb2e
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/helpers/fn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {Result} from "../result/interface"
import type {Result} from "../result/result"
import {PromiseResult} from "../result/promise"
import type {Err, Ok} from "../internal"

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/group.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {tryAsyncFnWith, tryFnWith, tryPromiseWith} from "./try"
import type {ErrorHandler} from "../error/result_error"
import type {Result} from "../result/interface"
import type {Result} from "../result/result"
import type {PromiseResult} from "../result/promise"

type Fn = (...args: any[]) => any
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/try.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Panic} from "../error/panic"
import {type ErrorHandler, StdError} from "../error/result_error"
import {Err} from "../result/err"
import type {Result} from "../result/interface"
import type {Result} from "../result/result"
import {Ok} from "../result/ok"
import {PromiseResult} from "../result/promise"

Expand Down
4 changes: 2 additions & 2 deletions src/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export * from "./helpers/group"
export * from "./helpers/guard"
export * from "./helpers/try"

export * from "./option/interface"
export * from "./option/option"
export * from "./option/none"
export * from "./option/promise"
export * from "./option/some"

export * from "./result/interface"
export * from "./result/result"
export * from "./result/err"
export * from "./result/ok"
export * from "./result/promise"
Expand Down
2 changes: 1 addition & 1 deletion src/option/none.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Panic, UnwrapPanic} from "../error/panic"
import {inspectSymbol} from "../util"
import type {OptionMethods, Option} from "./interface"
import type {OptionMethods, Option} from "./option"

export class NoneImpl implements OptionMethods<never> {
readonly some = false
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/option/promise.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {Option} from "./interface"
import type {Option} from "./option"

export class PromiseOption<T> implements PromiseLike<Option<T>> {
constructor(readonly promise: Promise<Option<T>> | PromiseLike<Option<T>>) {}
Expand Down
2 changes: 1 addition & 1 deletion src/option/some.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {inspectSymbol} from "../util"
import type {OptionMethods, Option} from "./interface"
import type {OptionMethods, Option} from "./option"
import {None} from "./none"

export class SomeImpl<T> implements OptionMethods<T> {
Expand Down
2 changes: 1 addition & 1 deletion src/result/err.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Panic, UnwrapPanic} from "../error/panic"
import {inspectSymbol} from "../util"
import type {Result} from "./interface"
import type {Result} from "./result"

export class ErrImpl<E = null> {
readonly ok = false
Expand Down
2 changes: 1 addition & 1 deletion src/result/ok.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Panic, UnwrapPanic} from "../error/panic"
import {inspectSymbol} from "../util"
import type {Result, ResultMethods} from "./interface"
import type {Result, ResultMethods} from "./result"

export class OkImpl<T = null> {
readonly ok = true
Expand Down
2 changes: 1 addition & 1 deletion src/result/promise.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {Result} from "./interface"
import type {Result} from "./result"

export class PromiseResult<T, E> implements PromiseLike<Result<T, E>> {
constructor(
Expand Down
File renamed without changes.

0 comments on commit ed0eb2e

Please sign in to comment.