muffin-admin 2.3.0 → 2.3.1

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.
package/dist/utils.d.ts CHANGED
@@ -17,7 +17,7 @@ export type APIParams = {
17
17
  headers?: any;
18
18
  body?: string;
19
19
  };
20
- export declare const requestHeaders: {};
20
+ export declare const requestHeaders: Record<string, string>;
21
21
  export declare function makeRequest(url: string, params?: APIParams): Promise<{
22
22
  status: number;
23
23
  headers: Headers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muffin-admin",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "NPM package for https://github.com/klen/muffin-admin",
5
5
  "files": [
6
6
  "src",
package/src/utils.tsx CHANGED
@@ -45,7 +45,7 @@ export type APIParams = {
45
45
  body?: string
46
46
  }
47
47
 
48
- export const requestHeaders = {}
48
+ export const requestHeaders: Record<string, string> = {}
49
49
 
50
50
  export function makeRequest(url: string, params: APIParams = {}) {
51
51
  const { data, query, ...opts } = params || {}