Slice

source

A 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

readonlycount: numbersource

The desired number of records to include.

offset: Tsource

Methods

Instance methods

toExclusiveRangeString(): stringsource

Inherited methods

staticapplyFieldGuards<T>(target: AbstractCtor<T>, item: any, tracer: Tracer): Maybe<T>source

inherited from ValidatableType.applyFieldGuards

staticvalidate<T extends ValidatableType<T>>(this: AbstractCtor<T> & CanHaveValidateHook<T>, item: any, tracer: Tracer = ...): Maybe<T>source

inherited from ValidatableType.validate

staticwithFields<T extends FieldDict>(fields: T): Validatable<MaterialisedType<T>> & Ctor<MaterialisedType<T>>source

inherited from ValidatableType.withFields