From 281eefc6a30750758762fb51549fb0f8002c91c8 Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Thu, 30 May 2024 09:42:03 +0000 Subject: [PATCH] build(docs): add type declarations for virtual:starlight --- docs/src/components/Header.astro | 2 +- docs/src/components/MobileMenuFooter.astro | 2 +- docs/src/env.d.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/src/components/Header.astro b/docs/src/components/Header.astro index 258ee9bd..fdfef9c5 100644 --- a/docs/src/components/Header.astro +++ b/docs/src/components/Header.astro @@ -1,6 +1,6 @@ --- import config from 'virtual:starlight/user-config'; -import type { Props } from '../props'; +import type { Props } from '@astrojs/starlight/props'; import LanguageSelect from 'virtual:starlight/components/LanguageSelect'; import Search from 'virtual:starlight/components/Search'; diff --git a/docs/src/components/MobileMenuFooter.astro b/docs/src/components/MobileMenuFooter.astro index b7b3d118..72989079 100644 --- a/docs/src/components/MobileMenuFooter.astro +++ b/docs/src/components/MobileMenuFooter.astro @@ -2,7 +2,7 @@ import LanguageSelect from 'virtual:starlight/components/LanguageSelect'; import SocialIcons from 'virtual:starlight/components/SocialIcons'; import ThemeSelect from 'virtual:starlight/components/ThemeSelect'; -import type { Props } from '../props'; +import type { Props } from '@astrojs/starlight/props'; import VersionSelect from './DocsVersionSelect.astro'; --- diff --git a/docs/src/env.d.ts b/docs/src/env.d.ts index 6811d7c2..89075f29 100644 --- a/docs/src/env.d.ts +++ b/docs/src/env.d.ts @@ -1,3 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/triple-slash-reference +/* eslint-disable @typescript-eslint/triple-slash-reference */ /// /// +///