Browse Source

fix: add symbolic name to buttonAnimationInjectionKey to improve readability

nian 1 month ago
parent
commit
7e80c9826b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/button-animation/injection.ts

+ 1 - 1
src/components/button-animation/injection.ts

@@ -1,4 +1,4 @@
 import type { ButtonAnimationProps } from './interface'
 import type { InjectionKey } from 'vue'
 
-export const buttonAnimationInjectionKey = Symbol() as InjectionKey<Partial<ButtonAnimationProps>>
+export const buttonAnimationInjectionKey: InjectionKey<Partial<ButtonAnimationProps>> = Symbol('buttonAnimationInjectionKey')