diff options
Diffstat (limited to 'src/ts/types/swr.ts')
| -rw-r--r-- | src/ts/types/swr.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ts/types/swr.ts b/src/ts/types/swr.ts new file mode 100644 index 0000000..4da6b2c --- /dev/null +++ b/src/ts/types/swr.ts @@ -0,0 +1,5 @@ +export type SWRResult<T> = { + data?: T; + isLoading: boolean; + isError: boolean; +}; |
