cdate icon indicating copy to clipboard operation
cdate copied to clipboard

Support plugin cdateFn type

Open sya-ri opened this issue 5 months ago • 0 comments

cdateFn ignores plugins, so I can't use plugin features from TypeScript.

const cdateS = cdate().plugin(P => class extends P {
    subtract(diff: number, unit?: UnitForAdd) {
        return this.add(-diff, unit);
    }
}).cdateFn();

// cDateS: cdate.cdate

sya-ri avatar Jan 20 '24 14:01 sya-ri