Open FrankiePo opened 7 years ago
Please implement this.
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
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
@neocotic anything on this?
Currently, there is no *.d.ts files to support Typescript. Can be done by "Should I Use The typings Field In package.json?"