Update to esm, update deepslate (#244)

This commit is contained in:
Misode
2022-06-16 00:58:14 +02:00
committed by GitHub
parent cbef6ef41b
commit 561cd341a1
98 changed files with 1243 additions and 1104 deletions

View File

@@ -1,7 +1,7 @@
import type { Inputs } from 'preact/hooks'
import { useEffect } from 'preact/hooks'
import type { AsyncCancel, AsyncState } from './useAsyncFn'
import { useAsyncFn } from './useAsyncFn'
import type { AsyncCancel, AsyncState } from './index.js'
import { useAsyncFn } from './index.js'
export function useAsync<R>(
fn: () => Promise<R | typeof AsyncCancel>,