@quo0/stiletto
Version:
With stiletto library you will be able to mock requests and choose between preconfigured responses right on the fly via UI
22 lines (21 loc) • 923 B
TypeScript
import { FileExtension } from '../../constants';
import { IQuestionCollection } from '../../../ioc';
export interface NewSetupQuestionsResult {
setupName: string;
setupPath: string;
defaultExtension: FileExtension;
launchPersistentContext: boolean;
}
export declare const newSetupQuestions: IQuestionCollection;
export declare function checkLength(providedSetupName: string): boolean;
export declare function checkPathIsNotExists(providedPath: string, answers: {
setupName: string;
}): Promise<boolean>;
export declare function trimAndEnsureSlasheAtTheStart(path: string): string;
export declare function normalizeStilettoPath(providedPath: string, answers: {
setupName: string;
}): string;
export declare function parseProvidedPath(providedPath: string, answers: {
setupName: string;
}): string;
export declare function mapToBoolean(providedChoice: 'yes' | 'no'): boolean;