-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
136 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,32 +15,31 @@ import { useNillion } from "./use-nillion"; | |
|
||
/** | ||
* `Options` is an interface that can be passed to the `useNilFetchValue` hook. | ||
* @param type: `NadaValueType` | ||
* @param staleAfter?: `number` | ||
* @param type - `NadaValueType` | ||
* @param staleAfter? - `number` | ||
Check warning on line 19 in packages/client-react-hooks/src/use-nil-fetch-value.ts GitHub Actions / check
|
||
*/ | ||
export interface Options { | ||
interface Options { | ||
type: NadaValueType; | ||
staleAfter?: number; | ||
} | ||
|
||
/** | ||
* `ExecuteArgs` is an interface that can be passed to the `execute` function. | ||
* @param id: `StoreId` or `string` | ||
* @param name: `NamedValue` or `string` | ||
* @param id - `StoreId` or `string` | ||
* @param name - `NamedValue` or `string` | ||
*/ | ||
export interface ExecuteArgs { | ||
interface ExecuteArgs { | ||
id: StoreId | string; | ||
name: NamedValue | string; | ||
} | ||
type ExecuteResult = NadaPrimitiveValue; | ||
|
||
/** | ||
* `UseNilFetchValue` is a hook that allows you to fetch a value from a store. | ||
* @property execute - It executes the NilHook synchronously, allowing the user to check for its status via {@link isSuccess} and {@link isError}. | ||
* @property executeAsync - It executes the NilHook asynchronously, allowing the usage of `async/await` or `.then()`. | ||
* @interface | ||
* execute - It executes the NilHook synchronously, allowing the user to check for its status via {@link isSuccess} and {@link isError}. | ||
* executeAsync - It executes the NilHook asynchronously, allowing the usage of `async/await` or `.then()`. | ||
*/ | ||
export type UseNilFetchValue = UseNilHook<ExecuteArgs, ExecuteResult>; | ||
type UseNilFetchValue = UseNilHook<ExecuteArgs, ExecuteResult>; | ||
|
||
/** | ||
* `useNilFetchValue` is a hook that allows you to fetch a value from a store. | ||
|
Oops, something went wrong.