SheetXL - v1.0.2
    Preparing search index...

    Interface IRichDataKind<T>

    A registered kind of rich data: the IRichType its values return from getKind(), and how a value of it is made from its JSON.

    What a value reads as where a primitive or an array is consumed is the value's own answer (IRichData.toPrimitive, IRichData.toArray), as toString() is; the kind describes values and makes them.

    Make one with IRichDataKind.create; register it with RichDataRegistry.register.

    interface IRichDataKind<T extends IRichData = IRichData> {
        fromJSON(json: JSON, ctx: IRichDataKind.Context): T;
    }

    Type Parameters

    • T extends IRichData = IRichData

    Hierarchy

    • IRichType
      • IRichDataKind
    Index
    • A value from its JSON, as IRichData.toJSON wrote it.

      Parameters

      • json: JSON
      • ctx: IRichDataKind.Context

        What the value is being made for. Every value is made here, whether it is loaded, written with setValue, or returned by a function. { type } alone asks for the kind's default value, which is what a UI inserts.

      Returns T