extension
Version:
Create cross-browser extensions with no build configuration.
31 lines (30 loc) • 1.62 kB
TypeScript
export declare const fmt: {
heading: (title: string) => string;
label: (k: string) => string;
val: (v: string) => string;
code: (v: string) => string;
bullet: (s: string) => string;
block(title: string, rows: Array<[string, string]>): string;
truncate(input: unknown, max?: number): string;
};
export declare const commandDescriptions: {
readonly create: "Creates a new extension from a template (React, TypeScript, Vue, Svelte, etc.)";
readonly dev: "Starts the development server with hot reloading";
readonly start: "Builds and starts the extension in production mode";
readonly preview: "Previews the extension in production mode without building";
readonly build: "Builds the extension for packaging/distribution";
readonly cleanup: "Cleans up orphaned instances and frees unused ports";
};
export declare function unhandledError(err: unknown): string;
export declare function updateFailed(err: any): string;
export declare function checkUpdates(packageJson: Record<string, any>, update: {
latest: string;
}): string;
export declare function unsupportedNodeVersion(): string;
export declare function noURLWithoutStart(argument: string): string;
export declare function notImplemented(argument: string): string;
export declare function programUserHelp(): string;
export declare function unsupportedBrowserFlag(value: string, supported: string[]): string;
export declare function invalidLogsOptionPipe(value: string): string;
export declare function invalidLogsOptionValue(value: string, allowed: string[]): string;
export declare function programAIHelp(): string;