Skip to content

Commit

Permalink
fix(types): remove number type of provide
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiangmoe committed Dec 2, 2023
1 parent c3b704e commit d5cb332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiInject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { warn } from './warning'

export interface InjectionKey<T> extends Symbol {}

export function provide<T, K = InjectionKey<T> | string | number>(
export function provide<T, K = InjectionKey<T> | string>(
key: K,
value: K extends InjectionKey<infer V> ? V : T
) {
Expand Down

0 comments on commit d5cb332

Please sign in to comment.