Skip to content

Commit

Permalink
Hotfix: Make errors null or undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
josepjaume committed Mar 4, 2025
1 parent 384e7c6 commit 5af8055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lib/promise-to-observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Observable } from "zen-observable-ts"

export interface PromiseState<T> {
loading: boolean
error: Error | null
data: T | null
error?: Error | null
data?: T | null
}

export function promiseToObservable<T>(
Expand Down

0 comments on commit 5af8055

Please sign in to comment.