Skip to content

Commit 748b151

Browse files
Jake ChampionJakeChampion
authored andcommitted
add type definition for KVStore.prototype.delete
1 parent 4aaae63 commit 748b151

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

types/kv-store.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ declare module "fastly:kv-store" {
3838
* @param name Name of the Fastly KV Store to interact with. A name cannot be empty, contain Control characters, or be longer than 255 characters.
3939
*/
4040
constructor(name: string);
41+
/**
42+
* Delete the value associated with the key `key` in the KV Store.
43+
* @param key The key to retrieve from within the KV Store. A key cannot:
44+
* - Be any of the strings "", ".", or ".."
45+
* - Start with the string ".well-known/acme-challenge/""
46+
* - Contain any of the characters "#?*[]\n\r"
47+
* - Be longer than 1024 characters
48+
*/
49+
delete(key: string): Promise<undefined>;
50+
4151
/**
4252
* Gets the value associated with the key `key` in the KV Store.
4353
* When the key is present, a resolved Promise containing an KVStoreEntry will be returned which contains the associated value.

0 commit comments

Comments
 (0)