From 00aa13161f3c8da451614925daf4cd897a838aa3 Mon Sep 17 00:00:00 2001 From: David Tai Date: Fri, 13 May 2022 18:14:20 +0800 Subject: [PATCH] fix: exclude internal `/_*`, `/api/_*` routes from NitroFetchReqeust type (#232) --- src/types/fetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/fetch.ts b/src/types/fetch.ts index 870272bac2..52eb063ea0 100644 --- a/src/types/fetch.ts +++ b/src/types/fetch.ts @@ -3,7 +3,7 @@ import type { FetchRequest, FetchOptions, FetchResponse } from 'ohmyfetch' // An interface to extend in a local project export interface InternalApi { } -export type NitroFetchRequest = keyof InternalApi | Exclude | string & {} +export type NitroFetchRequest = Exclude | Exclude | string & {} export type ValueOf = C extends Record ? C[keyof C] : never