style: fix linting
This commit is contained in:
parent
cdff824ca5
commit
45c072f2bd
@ -12,7 +12,7 @@
|
|||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"exactOptionalPropertyTypes": false,
|
"exactOptionalPropertyTypes": false
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
|
@ -2,7 +2,7 @@ import { useState } from 'react'
|
|||||||
|
|
||||||
export const fetchState = ['idle', 'loading', 'error', 'success'] as const
|
export const fetchState = ['idle', 'loading', 'error', 'success'] as const
|
||||||
|
|
||||||
export type FetchState = typeof fetchState[number]
|
export type FetchState = (typeof fetchState)[number]
|
||||||
|
|
||||||
export const useFetchState = (
|
export const useFetchState = (
|
||||||
initialFetchState: FetchState = 'idle'
|
initialFetchState: FetchState = 'idle'
|
||||||
|
Reference in New Issue
Block a user