mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Move all packages to a types directory
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
|
||||
import auth = require('basic-auth');
|
||||
|
||||
auth(null);
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
// Type definitions for basic-auth
|
||||
// Project: https://github.com/jshttp/basic-auth
|
||||
// Definitions by: Clément Bourgeois <https://github.com/moonpyk>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import * as http from 'http';
|
||||
|
||||
declare function auth(req: http.IncomingMessage): auth.BasicAuthResult;
|
||||
|
||||
declare namespace auth {
|
||||
interface BasicAuthResult {
|
||||
name: string;
|
||||
pass: string;
|
||||
}
|
||||
}
|
||||
|
||||
export = auth;
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"basic-auth-tests.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user