UNPKG

vite-plugin-qrcode

Version:
20 lines (17 loc) 550 B
import { Plugin } from 'vite'; declare function qrcode(options?: PluginOptions): Plugin; interface PluginOptions { /** * filter list of shown QR codes. Useful if you have multiple interfaces and only need one * * examples: * url => url.startsWith('http://192.') * url => !url.startsWith('http://172.) * url => url === 'http://192.168.1.70:4173' * * @param url {string} ip address * @returns {boolean} */ filter?: (url: string) => boolean; } export { type PluginOptions, qrcode };