-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(product): add injection token types (#1229)
- Loading branch information
1 parent
043a8db
commit 8e0e776
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
libs/product/src/drivers/injection-tokens/product-driver.token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
import { DaffProductServiceInterface } from '../interfaces/product-service.interface'; | ||
|
||
/** | ||
* Injection token that serves as a placeholder for any service that implements the DaffProductServiceInterface. | ||
*/ | ||
export const DaffProductDriver = | ||
new InjectionToken<DaffProductServiceInterface<any>>('DaffProductDriver'); | ||
export const DaffProductDriver = | ||
new InjectionToken<DaffProductServiceInterface>('DaffProductDriver'); |