export type DefaultOption = 'zeroValues' | 'nowFragments' | 'none';
declare const defaults:DefaultOption;
const now1 = pipe(
Match.value(defaults),
Match.when('none', () => undefined),
Match.when('nowFragments', () => new Date()),
Match.when('zeroValues', () => new Date(0, 0, 0, 0, 0, 0, 0)),
Match.exhaustive
);
const now2 = pipe(
Match.type<DefaultOption>(),
Match.when('none', () => undefined),
Match.when('nowFragments', () => new Date()),
Match.when('zeroValues', () => new Date(0, 0, 0, 0, 0, 0, 0)),
Match.exhaustive
)(defaults);
export type DefaultOption = 'zeroValues' | 'nowFragments' | 'none';
declare const defaults:DefaultOption;
const now1 = pipe(
Match.value(defaults),
Match.when('none', () => undefined),
Match.when('nowFragments', () => new Date()),
Match.when('zeroValues', () => new Date(0, 0, 0, 0, 0, 0, 0)),
Match.exhaustive
);
const now2 = pipe(
Match.type<DefaultOption>(),
Match.when('none', () => undefined),
Match.when('nowFragments', () => new Date()),
Match.when('zeroValues', () => new Date(0, 0, 0, 0, 0, 0, 0)),
Match.exhaustive
)(defaults);