mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
Add types for https://github.com/jaredhanson/passport-anonymous (#14016)
* Add "movieImages()" method, add "language" opional parametr * Change Definitions by * Add types for https://github.com/jaredhanson/connect-ensure-login * Add tslint.json for connect-ensure-login * Remove module from connect-ensure-login * Set strictNullChecks to true in connect-ensure-login * Add definitions for https://github.com/jaredhanson/passport-anonymous * Fix tests * fix import * fix import
This commit is contained in:
committed by
Mohamed Hegazy
parent
25a0880570
commit
b422c432dd
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// Type definitions for passport-anonymous 1.0
|
||||
// Project: https://github.com/jaredhanson/passport-anonymous
|
||||
// Definitions by: Pavel Puchkov <https://github.com/0x6368656174>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as passport from "passport";
|
||||
|
||||
export class Strategy implements passport.Strategy {
|
||||
authenticate: () => void;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import * as passport from "passport";
|
||||
import { Strategy } from "passport-anonymous";
|
||||
|
||||
passport.use(new Strategy());
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"passport-anonymous-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "../tslint.json"
|
||||
}
|
||||
Reference in New Issue
Block a user