@lynx-js/qrcode-rsbuild-plugin
Version:
A rsbuild plugin for printing QRCode in terminal
18 lines (17 loc) • 541 B
TypeScript
import type { RsbuildPluginAPI } from '@rsbuild/core';
import type { CustomizedSchemaFn } from './index.js';
interface Options {
api: RsbuildPluginAPI;
entries: string[];
schema: CustomizedSchemaFn;
port: number;
customShortcuts?: Record<string, {
value: string;
label: string;
hint?: string;
action?(): Promise<void>;
}>;
onPrint?: ((url: string) => Promise<void>) | undefined;
}
export declare function registerConsoleShortcuts(options: Options): Promise<() => void>;
export {};