@@ -9,6 +9,7 @@ import type {
99 SkillsListResponse ,
1010} from ' #shared/types'
1111import type { JsrPackageInfo } from ' #shared/types/jsr'
12+ import type { IconClass } from ' ~/types'
1213import { assertValidPackageName } from ' #shared/utils/npm'
1314import { joinURL } from ' ufo'
1415import { areUrlsEquivalent } from ' #shared/utils/url'
@@ -246,7 +247,7 @@ const { copied: copiedPkgName, copy: copyPkgName } = useClipboard({
246247
247248// copy version name
248249const { copied : copiedVersion, copy : copyVersion } = useClipboard ({
249- source: resolvedVersion .value ?? ' ' ,
250+ source : () => resolvedVersion .value ?? ' ' ,
250251 copiedDuring: 2000 ,
251252})
252253
@@ -398,7 +399,7 @@ const repositoryUrl = computed(() => {
398399
399400const { meta : repoMeta, repoRef, stars, starsLink, forks, forksLink } = useRepoMeta (repositoryUrl )
400401
401- const PROVIDER_ICONS: Record <string , string > = {
402+ const PROVIDER_ICONS: Record <string , IconClass > = {
402403 github: ' i-simple-icons:github' ,
403404 gitlab: ' i-simple-icons:gitlab' ,
404405 bitbucket: ' i-simple-icons:bitbucket' ,
@@ -411,7 +412,7 @@ const PROVIDER_ICONS: Record<string, string> = {
411412 radicle: ' i-lucide:network' , // Radicle is a P2P network, using network icon
412413}
413414
414- const repoProviderIcon = computed (() => {
415+ const repoProviderIcon = computed ((): IconClass => {
415416 const provider = repoRef .value ?.provider
416417 if (! provider ) return ' i-simple-icons:github'
417418 return PROVIDER_ICONS [provider ] ?? ' i-lucide:code'
0 commit comments