Axtlan
Axtlan

Reputation: 183

Someone knows how can i declare types for instascan library?

I just need to implement instascan with typescript, but i cant find any information on internet about its types. I tried to declare and export "fake" modules, but i cant handle it works

/index.d.ts

declare module "Instascan" {
    export class Camera {
        //..
    }
}

/main.ts

import {Camera} from "Instascan";

// .. //

Upvotes: 0

Views: 62

Answers (0)

Related Questions