1 | import type {Result, SyncResult} from '../return/result.js';
|
2 |
|
3 | type TemplateExpressionItem =
|
4 | | string
|
5 | | number
|
6 | | Result
|
7 | | SyncResult;
|
8 |
|
9 | /**
|
10 | Value allowed inside `${...}` when using the template string syntax.
|
11 | */
|
12 | export type TemplateExpression = TemplateExpressionItem | readonly TemplateExpressionItem[];
|
13 |
|
14 | // `...${...}...` template syntax
|
15 | export type TemplateString = readonly [TemplateStringsArray, ...readonly TemplateExpression[]];
|
16 |
|
17 | // `...${...}...` template syntax, but only allowing a single argument, for `execaCommand()`
|
18 | export type SimpleTemplateString = readonly [TemplateStringsArray, string?];
|