chunk-date-range icon indicating copy to clipboard operation
chunk-date-range copied to clipboard

Typescript types

Open tbreeding opened this issue 4 years ago • 0 comments

Would you mind adding types?

declare module 'chunk-date-range' {
	export default function chunkDateRange(
		start: Date,
		end: Date,
		chunkBy: 'day' | 'month' | 'year' | 'hour' | 'minute' | 'second' | number,
	): DateRange[]
}

type DateRange = {
	start: Date
	end: Date
}

tbreeding avatar Mar 21 '21 07:03 tbreeding