@types/chenfengyuan__vue-qrcode
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

Installation

npm install --save @types/chenfengyuan__vue-qrcode

Summary

This package contains type definitions for @chenfengyuan/vue-qrcode (https://github.com/fengyuanchen/vue-qrcode).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chenfengyuan__vue-qrcode.

index.d.ts

import { VueConstructor } from "vue";

declare const VueQrCode: QrCodeConstructor;
export = VueQrCode;

interface QrCodePorps {
    // The value of the QR code.
    value: string | null;
    // The options for the QR code generator.
    options: {
        // QR Code version.
        version?: number | undefined;
        // Error correction level.
        errorCorrectionLevel?: "low" | "medium" | "quartile" | "high" | "L" | "M" | "Q" | "H" | undefined;
        // Mask pattern used to mask the symbol.
        maskPattern?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | undefined;
        // Define how much wide the quiet zone should be.
        margin?: number | undefined;
        // Scale factor.
        scale?: number | undefined;
        // Forces a specific width for the output image.
        width?: number | undefined;
        color?: {
            dark?: string | undefined;
            light?: string | undefined;
        } | undefined;
    };
    // The tag name of the component's root element.
    tag: string;
}

interface QrCodeWatch {
    $props: (val: any) => void;
}

interface QrCodeMethods {
    // Generate QR code.
    generate: () => void;
}

interface QrCodeConstructor extends VueConstructor {
    props: QrCodePorps;
    watch: QrCodeWatch;
    methods: QrCodeMethods;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: vue

Credits

These definitions were written by gaoming13.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/chenfengyuan__vue-qrcode

Weekly Downloads

838

Version

1.0.7

License

MIT

Unpacked Size

5.29 kB

Total Files

5

Last publish

Collaborators

  • types