pcom-isv-base
Version:
千叶ISV基础能力
14 lines (13 loc) • 385 B
TypeScript
export interface QrcodeRule {
enabled?: boolean;
}
export interface GetImageOptions {
text: string;
size?: number;
colorDark?: string;
colorLight?: string;
}
export default function generate(rules?: QrcodeRule[]): {
getImageByText: (text: string) => Promise<string>;
getImage: ({ text, size, colorDark, colorLight }: GetImageOptions) => Promise<string>;
};