File tree 3 files changed +3
-4
lines changed
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue3-oop" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"main" : " dist/vue3-oop.js" ,
5
5
"module" : " dist/vue3-oop.mjs" ,
6
6
"types" : " types/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -191,11 +191,11 @@ export function createCurrentInjector(
191
191
export function injectService < T extends { new ( ...args : any [ ] ) : any } > (
192
192
token : T ,
193
193
notFoundValue ?: any
194
- ) : InstanceType < T > | undefined
194
+ ) : InstanceType < T >
195
195
export function injectService < T > (
196
196
token : string | number | symbol ,
197
197
notFoundValue ?: any
198
- ) : T | undefined {
198
+ ) : T {
199
199
const currentInjector = getCurrentInjector ( )
200
200
if ( ! currentInjector ) return notFoundValue
201
201
Original file line number Diff line number Diff line change 13
13
"experimentalDecorators" : true ,
14
14
"emitDecoratorMetadata" : true ,
15
15
"useDefineForClassFields" : false ,
16
- "verbatimModuleSyntax" : true ,
17
16
"allowSyntheticDefaultImports" : true ,
18
17
"strictPropertyInitialization" : false ,
19
18
"declaration" : true ,
You can’t perform that action at this time.
0 commit comments