Skip to content

Commit

Permalink
refactor: type export for ApiBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Oct 24, 2023
1 parent 8a85dbd commit 030d985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import type { FetchOptions } from 'ofetch'
import type { ApiBuilder, ApiMethodHandler, ResponseType } from './types'
import { mergeFetchOptions } from './utils'

export type { ApiBuilder }

const payloadMethods = ['POST', 'PUT', 'DELETE', 'PATCH']

/**
Expand Down Expand Up @@ -52,3 +50,5 @@ export function createClient<R extends ResponseType = 'json'>(

return p(defaultOptions.baseURL || '/')
}

export type { ApiBuilder } from './types'

0 comments on commit 030d985

Please sign in to comment.