@types/node-fetch-cache 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,16 +8,16 @@ This package contains type definitions for node-fetch-cache (https://github.com/
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch-cache.
9
9
  ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch-cache/index.d.ts)
10
10
  ````ts
11
- import fetch, { Response } from "node-fetch";
11
+ import fetch = require("node-fetch");
12
12
 
13
- declare class NFCResponse extends Response {
13
+ declare class NFCResponse extends fetch.Response {
14
14
  ejectFromCache(): Promise<void>;
15
15
  }
16
16
 
17
17
  interface Cache {
18
18
  get(key: string): Promise<any>;
19
19
  remove(key: string): Promise<void>;
20
- set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
20
+ set(key: string, bodyStream: fetch.Response["body"], metaData: any): Promise<any>;
21
21
  }
22
22
 
23
23
  interface MemoryCacheOptions {
@@ -28,7 +28,7 @@ export class MemoryCache implements Cache {
28
28
  constructor(options?: MemoryCacheOptions);
29
29
  get(key: string): Promise<any>;
30
30
  remove(key: string): Promise<void>;
31
- set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
31
+ set(key: string, bodyStream: fetch.Response["body"], metaData: any): Promise<any>;
32
32
  }
33
33
 
34
34
  interface FileSystemCacheOptions {
@@ -40,7 +40,7 @@ export class FileSystemCache implements Cache {
40
40
  constructor(options?: FileSystemCacheOptions);
41
41
  get(key: string): Promise<any>;
42
42
  remove(key: string): Promise<void>;
43
- set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
43
+ set(key: string, bodyStream: fetch.Response["body"], metaData: any): Promise<any>;
44
44
  }
45
45
 
46
46
  type FetchBuilder = (cache: Cache) => FetchCache;
@@ -56,7 +56,7 @@ export const fetchBuilder: FetchCache;
56
56
  ````
57
57
 
58
58
  ### Additional Details
59
- * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
59
+ * Last updated: Tue, 16 Jan 2024 23:07:00 GMT
60
60
  * Dependencies: [@types/node-fetch](https://npmjs.com/package/@types/node-fetch)
61
61
 
62
62
  # Credits
@@ -1,13 +1,13 @@
1
- import fetch, { Response } from "node-fetch";
1
+ import fetch = require("node-fetch");
2
2
 
3
- declare class NFCResponse extends Response {
3
+ declare class NFCResponse extends fetch.Response {
4
4
  ejectFromCache(): Promise<void>;
5
5
  }
6
6
 
7
7
  interface Cache {
8
8
  get(key: string): Promise<any>;
9
9
  remove(key: string): Promise<void>;
10
- set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
10
+ set(key: string, bodyStream: fetch.Response["body"], metaData: any): Promise<any>;
11
11
  }
12
12
 
13
13
  interface MemoryCacheOptions {
@@ -18,7 +18,7 @@ export class MemoryCache implements Cache {
18
18
  constructor(options?: MemoryCacheOptions);
19
19
  get(key: string): Promise<any>;
20
20
  remove(key: string): Promise<void>;
21
- set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
21
+ set(key: string, bodyStream: fetch.Response["body"], metaData: any): Promise<any>;
22
22
  }
23
23
 
24
24
  interface FileSystemCacheOptions {
@@ -30,7 +30,7 @@ export class FileSystemCache implements Cache {
30
30
  constructor(options?: FileSystemCacheOptions);
31
31
  get(key: string): Promise<any>;
32
32
  remove(key: string): Promise<void>;
33
- set(key: string, bodyStream: Response["body"], metaData: any): Promise<any>;
33
+ set(key: string, bodyStream: fetch.Response["body"], metaData: any): Promise<any>;
34
34
  }
35
35
 
36
36
  type FetchBuilder = (cache: Cache) => FetchCache;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node-fetch-cache",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "TypeScript definitions for node-fetch-cache",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch-cache",
6
6
  "license": "MIT",
@@ -22,6 +22,6 @@
22
22
  "dependencies": {
23
23
  "@types/node-fetch": "*"
24
24
  },
25
- "typesPublisherContentHash": "918478fa0d1ca2cfb5f125c611ad54151185420749eaefa590cca2f650a38fcf",
26
- "typeScriptVersion": "4.5"
25
+ "typesPublisherContentHash": "23870c05e26eef386160693cba24045bf8f6d08f64280abd2c22c33d3f0bbb6e",
26
+ "typeScriptVersion": "4.6"
27
27
  }