aboutsummaryrefslogtreecommitdiff
path: root/src/arguments/duration.ts
blob: 09dd3d58e5c1a8e78cb7215872c89c9ca0bc6897 (plain)
1
2
3
4
5
import { parseDuration, type BushArgumentTypeCaster } from '#lib';

export const duration: BushArgumentTypeCaster<number | null> = (_, phrase) => {
	return parseDuration(phrase).duration;
};