Skip to content

Commit

Permalink
fix(lib): properly annotate optional injection token type
Browse files Browse the repository at this point in the history
So it works in both AOT and JIT modes
  • Loading branch information
gund committed Aug 10, 2019
1 parent 52f04c5 commit 3044a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-router-meta/src/lib/router-meta.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class RouterMetaService implements OnDestroy {
private router: Router,
private title: Title,
private meta: Meta,
@Optional() private transferState: TransferState | undefined,
@Optional() private transferState?: TransferState,
) {}

/**
Expand Down

0 comments on commit 3044a72

Please sign in to comment.