@sandro-sikic/maker 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +23 -0
- package/package.json +2 -1
package/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export function init(): void;
|
|
2
|
+
|
|
3
|
+
export type RunResult = {
|
|
4
|
+
output: string;
|
|
5
|
+
stdout: string;
|
|
6
|
+
stderr: string;
|
|
7
|
+
code: number | null;
|
|
8
|
+
isError: boolean;
|
|
9
|
+
error: Error | null;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export function run(
|
|
13
|
+
command: string,
|
|
14
|
+
opts?: { maxLines?: number },
|
|
15
|
+
): Promise<RunResult>;
|
|
16
|
+
|
|
17
|
+
// runtime-forwarded objects (exported as values in JS)
|
|
18
|
+
export const prompt: typeof import('@inquirer/prompts');
|
|
19
|
+
export const spinner: typeof import('ora');
|
|
20
|
+
|
|
21
|
+
// type forwarding for downstream consumers
|
|
22
|
+
export type { Ora } from 'ora';
|
|
23
|
+
export * from '@inquirer/prompts';
|
package/package.json
CHANGED