Skip to content

Commit

Permalink
feat(daffio): add DaffioRoute type (#2984)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 authored Aug 15, 2024
1 parent 07a6955 commit 86b0973
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/daffio/src/app/core/router/route.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Route } from '@angular/router';

import { DaffDocKind } from '@daffodil/docs-utils';
import { DaffRouteWithNamedViews } from '@daffodil/router';

/**
* A route config that possibly contains different kinds of data used in the application.
*/
export interface DaffioRoute extends Route {
data?: Route['data']
& DaffRouteWithNamedViews['data']
& {
docKind?: DaffDocKind;
};
}

0 comments on commit 86b0973

Please sign in to comment.