Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit c52cf3c

Browse files
fix(core): use more specific type
1 parent a290582 commit c52cf3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/provide-once.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Optional, Provider, SkipSelf, Type } from '@angular/core';
1+
import { Optional, Provider, FactoryProvider, SkipSelf, Type } from '@angular/core';
22
import { reflector } from '@angular/core/src/reflection/reflection';
33
import { ReflectionCapabilities } from '@angular/core/src/reflection/reflection_capabilities';
44

5-
export function ProvideOnce<T>(input: Type<T>): Provider {
5+
export function ProvideOnce<T>(input: Type<T>): FactoryProvider {
66
return {
77
provide: input,
88
deps: [[new Optional(), new SkipSelf(), input], ...reflector.parameters(input)],

0 commit comments

Comments
 (0)