feat(types): 添加NuxtApp中$lenis的类型声明

在HomeHero组件中简化$lenis的类型获取方式
This commit is contained in:
2026-04-26 23:12:37 +08:00
parent 1407e2c8eb
commit 6b41e053a1
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
import type Lenis from 'lenis'
declare module '#app' {
interface NuxtApp {
$lenis?: Lenis
}
}
export {}