-
Notifications
You must be signed in to change notification settings - Fork 215
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
Comments
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? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, there is no *.d.ts files to support Typescript.
Can be done by "Should I Use The typings Field In package.json?"
The text was updated successfully, but these errors were encountered: