@withfig/autocomplete-types
Advanced tools
+10
-2
@@ -144,2 +144,7 @@ /* eslint-disable @typescript-eslint/ban-types */ | ||
| type GeneratorContext = ShellContext & { | ||
| isDangerous?: boolean; | ||
| searchTerm: string; | ||
| }; | ||
| /** | ||
@@ -228,8 +233,11 @@ * A function which can have a `T` argument and a `R` result. | ||
| * @param commandToExecute - The shell command you want to execute | ||
| * @param cwd - The directory in which to execute the command | ||
| * @returns The output of the shell command as a string | ||
| * | ||
| * @remarks | ||
| * The `cwd` parameter will add a `cd [cwd] &&` before the command itself. | ||
| * @example | ||
| * `ExecuteShellCommandFunction("echo hello world")` will return `hello world` | ||
| */ | ||
| type ExecuteShellCommandFunction = (commandToExecute: string) => Promise<string>; | ||
| type ExecuteShellCommandFunction = (commandToExecute: string, cwd?: string) => Promise<string>; | ||
@@ -1188,3 +1196,3 @@ type CacheMaxAge = { | ||
| executeShellCommand: ExecuteShellCommandFunction, | ||
| shellContext: ShellContext | ||
| generatorContext: GeneratorContext | ||
| ) => Promise<Suggestion[]>; | ||
@@ -1191,0 +1199,0 @@ /** |
+1
-1
| { | ||
| "name": "@withfig/autocomplete-types", | ||
| "description": "Typings for fig autocomplete specs and other tools", | ||
| "version": "1.23.0", | ||
| "version": "1.24.0", | ||
| "author": "The Fig Team", | ||
@@ -6,0 +6,0 @@ "types": "index.d.ts", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
62078
0.45%1172
0.6%