-
-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add docs typecheck script * fix: type-checking * chore: add changeset
- Loading branch information
Showing
7 changed files
with
167 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@astrojs/starlight': patch | ||
--- | ||
|
||
Fixes a potential type-checking issue in Starlight projects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
declare module 'virtual:starlight/project-context' { | ||
const ProjectContext: { | ||
root: string; | ||
srcDir: string; | ||
trailingSlash: import('astro').AstroConfig['trailingSlash']; | ||
build: { | ||
format: import('astro').AstroConfig['build']['format']; | ||
}; | ||
}; | ||
export default ProjectContext; | ||
} | ||
|
||
declare module 'virtual:starlight/git-info' { | ||
export function getNewestCommitDate(file: string): Date; | ||
} | ||
|
||
declare module 'virtual:starlight/user-css' {} | ||
|
||
declare module 'virtual:starlight/user-images' { | ||
type ImageMetadata = import('astro').ImageMetadata; | ||
export const logos: { | ||
dark?: ImageMetadata; | ||
light?: ImageMetadata; | ||
}; | ||
} | ||
|
||
declare module 'virtual:starlight/collection-config' { | ||
export const collections: import('astro:content').ContentConfig['collections'] | undefined; | ||
} | ||
|
||
declare module 'virtual:starlight/components/Banner' { | ||
const Banner: typeof import('./components/Banner.astro').default; | ||
export default Banner; | ||
} | ||
declare module 'virtual:starlight/components/ContentPanel' { | ||
const ContentPanel: typeof import('./components/ContentPanel.astro').default; | ||
export default ContentPanel; | ||
} | ||
declare module 'virtual:starlight/components/PageTitle' { | ||
const PageTitle: typeof import('./components/PageTitle.astro').default; | ||
export default PageTitle; | ||
} | ||
declare module 'virtual:starlight/components/FallbackContentNotice' { | ||
const FallbackContentNotice: typeof import('./components/FallbackContentNotice.astro').default; | ||
export default FallbackContentNotice; | ||
} | ||
declare module 'virtual:starlight/components/DraftContentNotice' { | ||
const DraftContentNotice: typeof import('./components/DraftContentNotice.astro').default; | ||
export default DraftContentNotice; | ||
} | ||
|
||
declare module 'virtual:starlight/components/Footer' { | ||
const Footer: typeof import('./components/Footer.astro').default; | ||
export default Footer; | ||
} | ||
declare module 'virtual:starlight/components/LastUpdated' { | ||
const LastUpdated: typeof import('./components/LastUpdated.astro').default; | ||
export default LastUpdated; | ||
} | ||
declare module 'virtual:starlight/components/Pagination' { | ||
const Pagination: typeof import('./components/Pagination.astro').default; | ||
export default Pagination; | ||
} | ||
declare module 'virtual:starlight/components/EditLink' { | ||
const EditLink: typeof import('./components/EditLink.astro').default; | ||
export default EditLink; | ||
} | ||
|
||
declare module 'virtual:starlight/components/Header' { | ||
const Header: typeof import('./components/Header.astro').default; | ||
export default Header; | ||
} | ||
declare module 'virtual:starlight/components/LanguageSelect' { | ||
const LanguageSelect: typeof import('./components/LanguageSelect.astro').default; | ||
export default LanguageSelect; | ||
} | ||
declare module 'virtual:starlight/components/Search' { | ||
const Search: typeof import('./components/Search.astro').default; | ||
export default Search; | ||
} | ||
declare module 'virtual:starlight/components/SiteTitle' { | ||
const SiteTitle: typeof import('./components/SiteTitle.astro').default; | ||
export default SiteTitle; | ||
} | ||
declare module 'virtual:starlight/components/SocialIcons' { | ||
const SocialIcons: typeof import('./components/SocialIcons.astro').default; | ||
export default SocialIcons; | ||
} | ||
declare module 'virtual:starlight/components/ThemeSelect' { | ||
const ThemeSelect: typeof import('./components/ThemeSelect.astro').default; | ||
export default ThemeSelect; | ||
} | ||
|
||
declare module 'virtual:starlight/components/Head' { | ||
const Head: typeof import('./components/Head.astro').default; | ||
export default Head; | ||
} | ||
declare module 'virtual:starlight/components/Hero' { | ||
const Hero: typeof import('./components/Hero.astro').default; | ||
export default Hero; | ||
} | ||
declare module 'virtual:starlight/components/MarkdownContent' { | ||
const MarkdownContent: typeof import('./components/MarkdownContent.astro').default; | ||
export default MarkdownContent; | ||
} | ||
|
||
declare module 'virtual:starlight/components/PageSidebar' { | ||
const PageSidebar: typeof import('./components/PageSidebar.astro').default; | ||
export default PageSidebar; | ||
} | ||
declare module 'virtual:starlight/components/TableOfContents' { | ||
const TableOfContents: typeof import('./components/TableOfContents.astro').default; | ||
export default TableOfContents; | ||
} | ||
declare module 'virtual:starlight/components/MobileTableOfContents' { | ||
const MobileTableOfContents: typeof import('./components/MobileTableOfContents.astro').default; | ||
export default MobileTableOfContents; | ||
} | ||
|
||
declare module 'virtual:starlight/components/Sidebar' { | ||
const Sidebar: typeof import('./components/Sidebar.astro').default; | ||
export default Sidebar; | ||
} | ||
declare module 'virtual:starlight/components/SkipLink' { | ||
const SkipLink: typeof import('./components/SkipLink.astro').default; | ||
export default SkipLink; | ||
} | ||
declare module 'virtual:starlight/components/ThemeProvider' { | ||
const ThemeProvider: typeof import('./components/ThemeProvider.astro').default; | ||
export default ThemeProvider; | ||
} | ||
|
||
declare module 'virtual:starlight/components/PageFrame' { | ||
const PageFrame: typeof import('./components/PageFrame.astro').default; | ||
export default PageFrame; | ||
} | ||
declare module 'virtual:starlight/components/MobileMenuToggle' { | ||
const MobileMenuToggle: typeof import('./components/MobileMenuToggle.astro').default; | ||
export default MobileMenuToggle; | ||
} | ||
declare module 'virtual:starlight/components/MobileMenuFooter' { | ||
const MobileMenuFooter: typeof import('./components/MobileMenuFooter.astro').default; | ||
export default MobileMenuFooter; | ||
} | ||
|
||
declare module 'virtual:starlight/components/TwoColumnContent' { | ||
const TwoColumnContent: typeof import('./components/TwoColumnContent.astro').default; | ||
export default TwoColumnContent; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.