You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@withfig/autocomplete-types

Package Overview
Dependencies
Maintainers
7
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@withfig/autocomplete-types - npm Package Compare versions

Comparing version
1.23.0
to
1.24.0
+10
-2
index.d.ts

@@ -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",