@withfig/autocomplete-types
Advanced tools
+10
-4
@@ -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 @@ * |
+1
-1
| { | ||
| "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", |
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
62285
0.33%1177
0.43%