UNPKG
@curi/interactions
Version:
latest (2.0.3)
next (2.0.0-beta.3)
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-beta.3
2.0.0-beta.2
2.0.0-beta.1
2.0.0-beta.0
Route interactions for a Curi application
pshrmn/curi
@curi/interactions
/
types
/
prefetch.d.ts
7 lines
(6 loc)
•
274 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
Route
,
IntrinsicResponse
,
ResolveResults
}
from
"@curi/types"
;
export
interface
PrefetchCallOptions
{
match
?:
IntrinsicResponse
;
external
?:
any
; }
export
default
function
prefetch
(
route
:
Route
,
options
?:
PrefetchCallOptions
):
Promise
<
ResolveResults
>;