Slice
sourceA range specification given as an offset and a number of records. Used in page specifications (see PageSpec).
For extensibility, this is generic over T, where T can be any kind of branded number, but in practice it's only used for slices of views (where T is a ViewOffset).
Constructors
new Slice<T extends BrandedNumber<any, T>>(offset: number | T, count: number): Slicesource
Properties
count: numbersource
The desired number of records to include.
offset: Tsource
Methods
Instance methods
toExclusiveRangeString(): stringsource
Inherited methods
applyFieldGuards<T>(target: AbstractCtor<T>, item: any, tracer: Tracer): Maybe<T>source
inherited from
ValidatableType.applyFieldGuards
validate<T extends ValidatableType<T>>(this: AbstractCtor<T> & CanHaveValidateHook<T>, item: any, tracer: Tracer = ...): Maybe<T>source
inherited from
ValidatableType.validate
withFields<T extends FieldDict>(fields: T): Validatable<MaterialisedType<T>> & Ctor<MaterialisedType<T>>source
inherited from
ValidatableType.withFields