Add "groupByDate" to "Chapters"

This commit is contained in:
schroda
2025-03-10 00:26:31 +01:00
parent 86525ec2a2
commit e9b42db10f
4 changed files with 43 additions and 34 deletions

8
src/UtilTypes.d.ts vendored
View File

@@ -39,3 +39,11 @@ type TransformRecordToWithDefaultFlag<T extends Record<string, any>> = {
type MergeObjectsArray<T extends object[]> = T extends [infer F, ...infer R]
? F & MergeObjectsArray<R extends object[] ? R : []>
: {};
type OmitNotMatching<T, K extends keyof T> = {
[P in K]: T[K];
};
type ExtractCommon<T, U> = {
[K in keyof T & keyof U]: T[K] extends U[K] ? T[K] : never;
};