feat: 🎸 Exporting all types in index (#45)

This commit is contained in:
Johan Öbrink 2021-02-04 11:15:50 +01:00 committed by GitHub
parent dea899bd17
commit 8351ef275f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,9 @@ import { Api } from './api'
import { FetcherOptions } from './fetcher'
import { AsyncishFunction, Fetch } from './types'
export { Api, FetcherOptions }
export * from './types'
export default function init(fetch: Fetch, clearCookies: AsyncishFunction, options?: FetcherOptions): Api {
return new Api(fetch, clearCookies, options)
}