mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
add Profile common interface
This commit is contained in:
1 parent
14bea81d0e
commit
39c44eb49c
2 files changed
+38
-12
No files matched your search
Vendored
+19
@@ -42,6 +42,24 @@ declare module 'passport' {
|
||||
name?: string;
|
||||
authenticate(req: express.Request, options?: Object): void;
|
||||
}
|
||||
|
||||
interface Profile {
|
||||
provider: string;
|
||||
id: string;
|
||||
displayName: string;
|
||||
name? : {
|
||||
familyName: string;
|
||||
givenName: string;
|
||||
middleName?: string;
|
||||
};
|
||||
emails?: {
|
||||
value: string;
|
||||
type?: string;
|
||||
}[];
|
||||
photos?: {
|
||||
value: string;
|
||||
}[];
|
||||
}
|
||||
}
|
||||
|
||||
declare module Express {
|
||||
@@ -60,3 +78,4 @@ declare module Express {
|
||||
isUnauthenticated(): boolean;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user