mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
7 lines
220 B
TypeScript
7 lines
220 B
TypeScript
import * as auth from 'auth-header';
|
|
|
|
const basic: string = auth.format('Basic');
|
|
const basic2: string = auth.format({scheme: 'Basic'});
|
|
|
|
const parsed: {scheme: string, token: null | string | string[]} = auth.parse('');
|