Skip to content

Commit

Permalink
Merge pull request #69 from HiDeoo/hd-fix-type-starlight-user-config-…
Browse files Browse the repository at this point in the history
…plugins
  • Loading branch information
HiDeoo authored Nov 10, 2024
2 parents fb28487 + 1e33b07 commit 437c572
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/starlight-links-validator/libs/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { StarlightUserConfig } from '@astrojs/starlight/types'

import { ensureLeadingSlash, ensureTrailingSlash } from './path'
import type { Headings } from './remark'
import type { StarlightUserConfig } from './validation'

export function getLocaleConfig(config: StarlightUserConfig): LocaleConfig | undefined {
if (!config.locales || Object.keys(config.locales).length === 0) return
Expand Down
4 changes: 3 additions & 1 deletion packages/starlight-links-validator/libs/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { statSync } from 'node:fs'
import { posix } from 'node:path'
import { fileURLToPath } from 'node:url'

import type { StarlightUserConfig } from '@astrojs/starlight/types'
import type { StarlightUserConfig as StarlightUserConfigWithPlugins } from '@astrojs/starlight/types'
import type { AstroConfig, AstroIntegrationLogger } from 'astro'
import { bgGreen, black, blue, dim, green, red } from 'kleur/colors'
import picomatch from 'picomatch'
Expand Down Expand Up @@ -278,3 +278,5 @@ interface ValidationContext {
outputDir: URL
pages: Pages
}

export type StarlightUserConfig = Omit<StarlightUserConfigWithPlugins, 'plugins'>

0 comments on commit 437c572

Please sign in to comment.