UNPKG

@iobroker/create-adapter

Version:

Command line utility to create customized ioBroker adapters

61 lines (60 loc) 1.39 kB
import type { Answers } from "./questions"; export type CheckResult = true | string; /** * * @param category * @param min * @param answers */ export declare function checkMinSelections(category: string, min: number, answers: any[]): Promise<CheckResult>; /** * * @param name * @param options */ export declare function checkAdapterName<T extends { /** * */ checkAdapterExistence?: (name: string) => Promise<CheckResult>; }>(name: string, options?: T): Promise<CheckResult>; /** * * @param title */ export declare function checkTitle(title?: string): CheckResult; /** * * @param name */ export declare function checkAuthorName(name?: string): Promise<CheckResult>; /** * * @param email */ export declare function checkEmail(email: string): Promise<CheckResult>; /** * * @param tools */ export declare function checkTypeScriptTools(tools: Exclude<Answers["tools"], undefined>): Promise<CheckResult>; /** * * @param name */ export declare function transformAdapterName(name: string): string; /** * * @param description */ export declare function transformDescription(description: string): string | undefined; /** * * @param keywords */ export declare function transformKeywords(keywords: string): string[] | undefined; /** * * @param contributors */ export declare function transformContributors(contributors: string): string[] | undefined;