common-types
Advanced tools
Comparing version 1.21.3 to 1.21.4
@@ -221,2 +221,3 @@ import { IDictionary } from "../basics"; | ||
Accept: string; | ||
Authorization?: string; | ||
/** CORs scoping */ | ||
@@ -223,0 +224,0 @@ ["Access-Control-Allow-Origin"]?: string; |
@@ -8,3 +8,3 @@ import { scalar } from "./aliases"; | ||
*/ | ||
export declare type IHttpRequestHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = T & { | ||
export declare type IHttpRequestHeaders<T extends IDictionary<scalar | undefined> = IDictionary<scalar | undefined>> = T & { | ||
/** | ||
@@ -59,3 +59,3 @@ * The `Accept` _request_ HTTP header advertises which content types, expressed as | ||
*/ | ||
export declare type IHttpResponseHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = T & { | ||
export declare type IHttpResponseHeaders<T extends IDictionary<scalar | undefined> = IDictionary<scalar | undefined>> = T & { | ||
/** | ||
@@ -171,3 +171,3 @@ * The `Allow` header lists the set of methods supported by a resource. | ||
}; | ||
export declare type IHttpHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = IHttpRequestHeaders<T> | IHttpResponseHeaders<T>; | ||
export declare type IHttpHeaders<T extends IDictionary<scalar | undefined> = IDictionary<scalar | undefined>> = IHttpRequestHeaders<T> | IHttpResponseHeaders<T>; | ||
export declare enum HttpStatusCodes { | ||
@@ -174,0 +174,0 @@ /** |
@@ -221,2 +221,3 @@ import { IDictionary } from "../basics"; | ||
Accept: string; | ||
Authorization?: string; | ||
/** CORs scoping */ | ||
@@ -223,0 +224,0 @@ ["Access-Control-Allow-Origin"]?: string; |
@@ -8,3 +8,3 @@ import { scalar } from "./aliases"; | ||
*/ | ||
export declare type IHttpRequestHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = T & { | ||
export declare type IHttpRequestHeaders<T extends IDictionary<scalar | undefined> = IDictionary<scalar | undefined>> = T & { | ||
/** | ||
@@ -59,3 +59,3 @@ * The `Accept` _request_ HTTP header advertises which content types, expressed as | ||
*/ | ||
export declare type IHttpResponseHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = T & { | ||
export declare type IHttpResponseHeaders<T extends IDictionary<scalar | undefined> = IDictionary<scalar | undefined>> = T & { | ||
/** | ||
@@ -171,3 +171,3 @@ * The `Allow` header lists the set of methods supported by a resource. | ||
}; | ||
export declare type IHttpHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = IHttpRequestHeaders<T> | IHttpResponseHeaders<T>; | ||
export declare type IHttpHeaders<T extends IDictionary<scalar | undefined> = IDictionary<scalar | undefined>> = IHttpRequestHeaders<T> | IHttpResponseHeaders<T>; | ||
export declare enum HttpStatusCodes { | ||
@@ -174,0 +174,0 @@ /** |
{ | ||
"name": "common-types", | ||
"version": "1.21.3", | ||
"version": "1.21.4", | ||
"description": "Common types not included in Typescript", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/lifegadget/common-types", |
318365
7588