Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typescript support #101

Open
FrankiePo opened this issue Jun 18, 2017 · 4 comments
Open

Add typescript support #101

FrankiePo opened this issue Jun 18, 2017 · 4 comments

Comments

@FrankiePo
Copy link

Currently, there is no *.d.ts files to support Typescript.
Can be done by "Should I Use The typings Field In package.json?"

@FrankiePo FrankiePo changed the title Typescript support Add typescript support Jun 18, 2017
@chrillewoodz
Copy link

Please implement this.

@dougludlow
Copy link

Was just using this library. Here's what I threw together real quick, it can probably be expanded on:

interface QRiousStatic {
    new(options?: QRiousOptions): QRiousStatic;
    toDataURL(mime?: string): string;
}

type CorrectionLevel = 'L' | 'M' | 'Q' | 'H';

interface QRiousOptions {
    background?: string;
    backgroundAlpha?: number;
    foreground?: string,
    foregroundAlpha?: number,
    level?: CorrectionLevel;
    padding?: number,
    size?: number,
    value?: string
}


declare module "qrious" {
    export = QRious;
}

declare var QRious: QRiousStatic

@nayuki
Copy link

nayuki commented Aug 27, 2018

My QR Code generator library has a native port in TypeScript. Have a look at https://github.com/nayuki/QR-Code-generator/tree/master/typescript

@giovanni-bertoncelli
Copy link

@neocotic anything on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants