summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Connor Bär <connor-baer@users.noreply.github.com> 2023-05-19 17:34:34 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-19 23:34:34 +0800
commit147373722b37126af949bb054a1cdfb0aed6c2ff (patch)
tree96abb8769b9c9b38d5c1aaf58b212f411d6653e8
parentcf066944b529085c7365ad2bff0304b1ee0e5780 (diff)
downloadastro-147373722b37126af949bb054a1cdfb0aed6c2ff.tar.gz
astro-147373722b37126af949bb054a1cdfb0aed6c2ff.tar.zst
astro-147373722b37126af949bb054a1cdfb0aed6c2ff.zip
fix(prefetch): Fix the inclusion of `@types/network-information` (#7123)
Diffstat (limited to '')
-rw-r--r--.changeset/brown-goats-serve.md6
-rw-r--r--packages/integrations/prefetch/src/client.ts2
2 files changed, 7 insertions, 1 deletions
diff --git a/.changeset/brown-goats-serve.md b/.changeset/brown-goats-serve.md
new file mode 100644
index 000000000..c4fe4d016
--- /dev/null
+++ b/.changeset/brown-goats-serve.md
@@ -0,0 +1,6 @@
+---
+'@astrojs/prefetch': patch
+---
+
+Fix the inclusion of `@types/network-information`.
+
diff --git a/packages/integrations/prefetch/src/client.ts b/packages/integrations/prefetch/src/client.ts
index 40a226cc5..a8b88d85c 100644
--- a/packages/integrations/prefetch/src/client.ts
+++ b/packages/integrations/prefetch/src/client.ts
@@ -1,5 +1,5 @@
+/// <reference types="../@types/network-information.d.ts" />
import throttles from 'throttles';
-import '../@types/network-information.d.ts';
import requestIdleCallback from './requestIdleCallback.js';
const events = ['mouseenter', 'touchstart', 'focus'];