style: fix linting

This commit is contained in:
Divlo 2023-01-10 21:27:25 +01:00
parent cdff824ca5
commit 45c072f2bd
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"exactOptionalPropertyTypes": false,
"exactOptionalPropertyTypes": false
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]

View File

@ -2,7 +2,7 @@ import { useState } from 'react'
export const fetchState = ['idle', 'loading', 'error', 'success'] as const
export type FetchState = typeof fetchState[number]
export type FetchState = (typeof fetchState)[number]
export const useFetchState = (
initialFetchState: FetchState = 'idle'