SheetXL - v0.3.20
    Preparing search index...

    Interface Filler<T>

    Represents a filler capable of determining if it can fill a value and creating an IAutoFill.FillAt function for generating filled values within a single dimension (row or column).

    interface Filler<T = any> {
        canFill: (value: any, prev: any) => boolean;
        createFillAt: (
            values: readonly T[],
            options?: IAutoFill.Options,
        ) => FillAt<T>;
    }

    Type Parameters

    • T = any

    Implemented by

    Index

    Properties

    canFill: (value: any, prev: any) => boolean

    Determines if the Filler can add value to the current fill.

    Type declaration

      • (value: any, prev: any): boolean
      • Parameters

        • value: any

          The value to test. Can be any type or null.

        • prev: any

          The previous value in the candidate set that is not a null. This is undefined for the first element.

        Returns boolean

        true if the value should be added.

    • The fill array should be treated as readonly.
    • The value may be any type and should return false if it's not supported.
    createFillAt: (values: readonly T[], options?: IAutoFill.Options) => FillAt<T>

    Create a IAutoFill.FillAt function using the provided values and options.

    • The first elements in the values is guaranteed to never be null.
    • Return null if the autofill is unable to fill.