diff options
author | 2023-05-19 17:34:34 +0200 | |
---|---|---|
committer | 2023-05-19 23:34:34 +0800 | |
commit | 147373722b37126af949bb054a1cdfb0aed6c2ff (patch) | |
tree | 96abb8769b9c9b38d5c1aaf58b212f411d6653e8 | |
parent | cf066944b529085c7365ad2bff0304b1ee0e5780 (diff) | |
download | astro-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.md | 6 | ||||
-rw-r--r-- | packages/integrations/prefetch/src/client.ts | 2 |
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']; |