#380·cash

Augmenting Cash with my own functions

Author: RobinRadicCreated Jun 26, 2021Updated Apr 13, 2023
Labelsbughelp wanted

image

Unlike many other typescript libraries. Doing something like:

typescript

declare module 'cash-dom' {
    export interface Cash
        ensureClass(className, remove):Cash
    }
}

Doesn't work. Neither in the same .ts file, a seperate .d.ts file and with or without the export before the interface, in case that would.

Ofcourse, in the .d.ts file i'm adding

typescript
import 'cash-dom'
// repetition of previous code

How to augment Cash?