Add some type utils, findFeed, and fix feed listener to use limit: 0 instead of since

This commit is contained in:
Jon Staab
2025-09-09 16:12:16 -07:00
parent 9a476d2c30
commit 599e6a5085
19 changed files with 95 additions and 16 deletions
+8
View File
@@ -14,6 +14,14 @@ export const isNotNil = <T>(x: T, ...args: unknown[]) => x !== undefined && x !=
export const assertNotNil = <T>(x: T, ...args: unknown[]) => x!
// ----------------------------------------------------------------------------
// Working with types
// ----------------------------------------------------------------------------
export type Override<T, R> = Omit<T, keyof R> & R
export type MakeOptional<T, K extends keyof T> = Override<T, Partial<Pick<T, K>>>
// ----------------------------------------------------------------------------
// Basic functional programming utilities
// ----------------------------------------------------------------------------