(maxRows: number): <R extends StoreRegistrationAny>(registration: R) => RCap how many rows a scope keeps — oldest rows are trimmed after each append.
utils
Source src/Store.ts:9694 lines
export const const retention: (
maxRows: number
) => <R extends StoreRegistrationAny>(
registration: R
) => R
Cap how many rows a scope keeps — oldest rows are trimmed after each append.
retention =
(maxRows: numbermaxRows: number) =>
<function (type parameter) R in <R extends StoreRegistrationAny>(registration: R): RR extends import StoreRegistrationAnyStoreRegistrationAny>(registration: R extends StoreRegistrationAnyregistration: function (type parameter) R in <R extends StoreRegistrationAny>(registration: R): RR): function (type parameter) R in <R extends StoreRegistrationAny>(registration: R): RR =>
import withRegistrationRetentionwithRegistrationRetention(registration: R extends StoreRegistrationAnyregistration, maxRows: numbermaxRows);