Skip to content

Commit

Permalink
Re-export named exports from ky
Browse files Browse the repository at this point in the history
Fixes #39
  • Loading branch information
sindresorhus committed Mar 10, 2022
1 parent 71092d3 commit 0b8bc36
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
4 changes: 1 addition & 3 deletions browser.d.ts
@@ -1,4 +1,2 @@
import ky from 'ky';

export default ky;
export {default} from 'ky';
export * from 'ky';
5 changes: 2 additions & 3 deletions browser.js
@@ -1,3 +1,2 @@
import ky from 'ky';

export default ky;
export {default} from 'ky';
export * from 'ky';
4 changes: 1 addition & 3 deletions index.d.ts
@@ -1,4 +1,2 @@
import ky from 'ky';

export default ky;
export {default} from 'ky';
export * from 'ky';
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -32,3 +32,4 @@ if (!globalThis.ReadableStream) {
}

export default ky;
export * from 'ky';
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -55,7 +55,7 @@ const result = new TextDecoder('utf-8').decode(value);

## API

The API is exactly the same as the [Ky API](https://github.com/sindresorhus/ky#api).
The API is exactly the same as the [Ky API](https://github.com/sindresorhus/ky#api), including the [named exports](https://github.com/sindresorhus/ky#httperror).

## FAQ

Expand Down

0 comments on commit 0b8bc36

Please sign in to comment.