Skip to content

Commit

Permalink
Oops!
Browse files Browse the repository at this point in the history
  • Loading branch information
yhdgms1 committed Jun 28, 2022
1 parent 98db279 commit 9b88966
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/fetcher.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Options, NoUndefined } from './types'
import type { Options } from './types'

export const fetcher: NoUndefined<Options['fetcher']> = url => {
export const fetcher: Required<Options>['fetcher'] = url => {
return new Promise(async resolve => {
try {
const response = await fetch(url)
Expand Down
1 change: 0 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export type NoUndefined<T> = T extends undefined ? never : T
export type Thenable<T> = Promise<T> | T
export type Hook = (value: string) => Thenable<string | void>
export type BuildSvgDataURI = (html: Node, options: Options) => Promise<string>
Expand Down

0 comments on commit 9b88966

Please sign in to comment.