Skip to content

Commit

Permalink
fix(types) data/error always defined
Browse files Browse the repository at this point in the history
Fixes #74
  • Loading branch information
darrenjennings committed Dec 5, 2020
1 parent 05ffc66 commit b74b42e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export interface IConfig {
}

export interface IResponse<Data = any, Error = any> {
data?: Ref<Data | undefined>
error?: Ref<Error | undefined>
data: Ref<Data | undefined>
error: Ref<Error | undefined>
isValidating: Ref<boolean>
mutate: (data?: fetcherFn<Data>, opts?: revalidateOptions) => Promise<void>
}
Expand Down

0 comments on commit b74b42e

Please sign in to comment.