From 45c072f2bd0c7d15c1faf2b794b9f262359e7c20 Mon Sep 17 00:00:00 2001 From: Divlo Date: Tue, 10 Jan 2023 21:27:25 +0100 Subject: [PATCH] style: fix linting --- example/tsconfig.json | 2 +- src/hooks/useFetchState.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'