From 07b6e113032506716f229cd46baa421c88a5598a Mon Sep 17 00:00:00 2001 From: Sacha STAFYNIAK Date: Mon, 20 Mar 2023 12:34:18 +0100 Subject: [PATCH] fix: exported links typing --- client.d.ts | 3 ++- examples/astro/src/pages/index.astro | 16 ++++++++++------ src/astro.ts | 13 +++---------- src/astro/component.astro | 7 ++----- 4 files changed, 17 insertions(+), 22 deletions(-) diff --git a/client.d.ts b/client.d.ts index a944609..3fd4ef5 100644 --- a/client.d.ts +++ b/client.d.ts @@ -4,5 +4,6 @@ declare module 'unfonts.css' { } declare module 'unplugin-fonts/head' { - export const links: string[] + import { HtmlTagDescriptor } from "vite" + export const links: HtmlTagDescriptor[] } diff --git a/examples/astro/src/pages/index.astro b/examples/astro/src/pages/index.astro index 639205e..8a6cf42 100644 --- a/examples/astro/src/pages/index.astro +++ b/examples/astro/src/pages/index.astro @@ -2,12 +2,16 @@ import Unfont from 'unplugin-fonts/astro/component.astro'; --- -
- -

Hello Astro!

-

I'm using a local font !

- Documentation -
+ + + + + +

Hello Astro!

+

I'm using a local font !

+ Documentation + +