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.24.0
to
1.25.0
+10
-4
index.d.ts

@@ -243,3 +243,3 @@ /* eslint-disable @typescript-eslint/ban-types */

type CacheMaxAge = {
strategy?: "max-age";
strategy: "max-age";
/**

@@ -254,3 +254,3 @@ * The time to live for the cache in milliseconds.

type CacheStaleWhileRevalidate = {
strategy: "stale-while-revalidate";
strategy?: "stale-while-revalidate";
/**

@@ -270,2 +270,8 @@ * The time to live for the cache in milliseconds.

cacheByDirectory?: boolean;
/**
* Hardcoded cache key that can be used to cache a single generator across
* multiple argument locations in a spec.
*/
cacheKey?: string;
};

@@ -1206,4 +1212,4 @@

* We currently have two cache strategies:
* - `max-age` (default): you just need to specify a `ttl` (time to live) for how long the cache will last (this is a number)
* - `stale-while-revalidate`: when cache becomes stale fig will return the stale data while fetching the updated one. This strategy also accepts a `ttl` to configure how long it takes for the cache to become stale.
* - `stale-while-revalidate` (default): when cache becomes stale fig will return the stale data while fetching the updated one. This strategy accepts a `ttl` (time to live) to configure how long it takes for the cache to become stale.
* - `max-age`: will show a loading indicator when cache is stale. You need to specify a `ttl` for how long it takes for the cache to become stale.
* You can also optionally turn on the ability to just cache by directory (`cacheByDirectory: true`)

@@ -1210,0 +1216,0 @@ *

{
"name": "@withfig/autocomplete-types",
"description": "Typings for fig autocomplete specs and other tools",
"version": "1.24.0",
"version": "1.25.0",
"author": "The Fig Team",

@@ -6,0 +6,0 @@ "types": "index.d.ts",