libs/navigation/driver/src/interfaces/navigation-transformer.interface.ts
import { createSingleInjectionToken } from '@daffodil/core';
import { DaffGenericNavigationTree } from '@daffodil/navigation';
export interface DaffNavigationTransformerInterface<T extends DaffGenericNavigationTree<T>> {
transform(navigationTree: any): T;
}
export const {
token: DaffNavigationTransformer,
/**
* Provider function for {@link DaffNavigationTransformer}.
*/
provider: provideDaffNavigationTransformer,
} = createSingleInjectionToken<DaffNavigationTransformerInterface<any>>('DaffNavigationTransformer');