@soundify/shared
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -5,3 +5,3 @@ { | ||
"name": "@soundify/shared", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"description": "Shared types and functions for soundify packages", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
@@ -10,7 +10,10 @@ export type SearchParam = string | number | boolean | undefined | string[]; | ||
export declare const objectToSearchParams: <T extends SearchParams>(obj: T) => URLSearchParams; | ||
export type JSONValue = undefined | null | string | number | boolean | JSONObject | JSONArray; | ||
export type JSONValue = null | string | number | boolean | JSONObject | JSONArray; | ||
export type JSONArray = JSONValue[]; | ||
export interface JSONObject { | ||
[x: string]: JSONValue; | ||
[x: string]: JSONValue | undefined; | ||
} | ||
export type NonNullableJSON<T extends JSONObject> = { | ||
[K in keyof T]: NonNullable<T[K]>; | ||
}; | ||
export type HTTPMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; | ||
@@ -43,3 +46,3 @@ export interface FetchOpts { | ||
*/ | ||
export interface Accessor { | ||
export interface IAccessProvider { | ||
/** | ||
@@ -55,4 +58,1 @@ * Function that gives you access token. | ||
} | ||
export type NonNullableJSON<T extends JSONObject> = { | ||
[K in keyof T]: NonNullable<T[K]>; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4275