Skip to content

Commit

Permalink
Paraglide: Fix typing for newLanguage in demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
msgeissler authored Nov 29, 2024
1 parent c11b051 commit e855eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/addons/paraglide/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default defineAddon({
scriptCode.append('\n\n');
scriptCode.append(dedent`
${ts('', '/**')}
${ts('', '* @param import("$lib/paraglide/runtime").AvailableLanguageTag newLanguage')}
${ts('', '* @param {import("$lib/paraglide/runtime").AvailableLanguageTag} newLanguage')}
${ts('', '*/')}
function switchToLanguage(newLanguage${ts(': AvailableLanguageTag')}) {
const canonicalPath = i18n.route($page.url.pathname);
Expand Down

0 comments on commit e855eb3

Please sign in to comment.