@types/auth-header
Advanced tools
Comparing version
@@ -14,4 +14,4 @@ // Type definitions for auth-header 1.0 | ||
scheme: string; | ||
token?: string; | ||
params?: Params; | ||
token?: string | undefined; | ||
params?: Params | undefined; | ||
} | ||
@@ -18,0 +18,0 @@ |
{ | ||
"name": "@types/auth-header", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "TypeScript definitions for auth-header", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/auth-header", | ||
"license": "MIT", | ||
@@ -14,3 +15,3 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -23,4 +24,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "a8056af79b3c686d26c87b3a68dea39e9d4d060222e646a5087d687dca2928d0", | ||
"typeScriptVersion": "2.1" | ||
"typesPublisherContentHash": "23132ea6fc958bc87217ec1a79ea61f04791f7a9a3dafda1520bb5b7eb9b3ac7", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -5,9 +5,40 @@ # Installation | ||
# Summary | ||
This package contains type definitions for auth-header ( https://github.com/izaakschroeder/auth-header ). | ||
This package contains type definitions for auth-header (https://github.com/izaakschroeder/auth-header). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/auth-header | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/auth-header. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/auth-header/index.d.ts) | ||
````ts | ||
// Type definitions for auth-header 1.0 | ||
// Project: https://github.com/izaakschroeder/auth-header | ||
// Definitions by: ForbesLindesay <https://github.com/ForbesLindesay> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
Additional Details | ||
* Last updated: Wed, 13 Mar 2019 17:15:43 GMT | ||
type Params = | ||
| Array<[string, string | ReadonlyArray<string>]> | ||
| {[key: string]: string | ReadonlyArray<string>}; | ||
export { Params }; | ||
export interface TokenOptions { | ||
scheme: string; | ||
token?: string | undefined; | ||
params?: Params | undefined; | ||
} | ||
export interface Token { | ||
scheme: string; | ||
params: {[key: string]: string | string[]}; | ||
token: null | string | string[]; | ||
} | ||
export function format(token: TokenOptions): string; | ||
export function format(scheme: string, token?: string, params?: Params): string; | ||
export function parse(header: string): Token; | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 07 Jul 2021 21:44:38 GMT | ||
* Dependencies: none | ||
@@ -17,2 +48,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by ForbesLindesay <https://github.com/ForbesLindesay>. | ||
These definitions were written by [ForbesLindesay](https://github.com/ForbesLindesay). |
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4283
32.77%0
-100%48
182.35%