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

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