cash icon indicating copy to clipboard operation
cash copied to clipboard

Augmenting Cash with my own functions

Open RobinRadic opened this issue 3 years ago • 1 comments

image

Unlike many other typescript libraries. Doing something like:


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

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

How to augment Cash?

RobinRadic avatar Jun 26 '21 12:06 RobinRadic

This worked for me when I wrote it, but I think at some point it stopped working.

I'll have to look more closely into it. Suggestions welcome.

fabiospampinato avatar Jun 29 '21 20:06 fabiospampinato