Type Alias SaveData<T>

SaveData<T>: ReturnType<T["toJSON"]>

Get the return type of the toJSON method of an object.

Type Parameters

  • T extends {
        toJSON: (() => unknown);
    }

    The object type.