diff --git a/example/tsconfig.json b/example/tsconfig.json index 491153b..20dd2b1 100644 --- a/example/tsconfig.json +++ b/example/tsconfig.json @@ -12,7 +12,7 @@ "isolatedModules": true, "jsx": "preserve", "incremental": true, - "exactOptionalPropertyTypes": false, + "exactOptionalPropertyTypes": false }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules"] diff --git a/src/hooks/useFetchState.ts b/src/hooks/useFetchState.ts index b65ea29..103ad61 100644 --- a/src/hooks/useFetchState.ts +++ b/src/hooks/useFetchState.ts @@ -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'