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

export const contentWithDuration: BushArgumentTypeCaster<Promise<ParsedDuration>> = async (_, phrase) => {
	return parseDuration(phrase);
};