Skip to content

Commit

Permalink
fix injection key
Browse files Browse the repository at this point in the history
pikax committed Oct 7, 2023
1 parent 3b8f758 commit 64904d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dts-test/inject.test-d.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import { expectType } from './utils'
provide('foo', 123)
provide(123, 123)

const key: InjectionKey<number> = Symbol()
const key = Symbol() as InjectionKey<number>

provide(key, 1)
// @ts-expect-error

0 comments on commit 64904d6

Please sign in to comment.