@triviality/commander
Version:
Commander as a Triviality Module
10 lines (8 loc) • 509 B
text/typescript
import { FF } from '@triviality/core';
import { CommanderFeatureServices } from '../src';
import { CommanderHelloConfiguration } from './CommanderHelloConfiguration';
import { CommanderByeConfiguration } from './CommanderByeConfiguration';
export const CommanderExampleFeature: FF<{}, CommanderFeatureServices> = ({ registers: { commanderConfigurations } }) => ({
...commanderConfigurations(() => new CommanderHelloConfiguration()),
...commanderConfigurations(() => new CommanderByeConfiguration()),
});