Skip to content

Commit

Permalink
Add some missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbischof authored and outofcoffee committed Oct 16, 2024
1 parent c73ce9c commit dcf03f0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ interface ResponseBehaviour {
* @param max
*/
withDelayRange(min: number, max: number): ResponseBehaviour

/**
* Return raw response data
*
* @param content
*/
withContent(content: string | undefined): ResponseBehaviour
}

interface Store extends Record<string, any> {
Expand All @@ -153,6 +160,12 @@ interface Store extends Record<string, any> {
*/
loadAll<T>(): Record<string, any>[]

/**
* Read a store item as JSON
* @param name
*/
loadAsJson(name: string): string

/**
* Save an item.
* @param key
Expand Down

0 comments on commit dcf03f0

Please sign in to comment.