{"action":"created","comment":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments/88907464","pull_request_review_id":9464337,"id":88907464,"diff_hunk":"@@ -0,0 +1,93 @@\n+// Type definitions for oauth2orize v1.5.1\n+// Project: https://github.com/jaredhanson/oauth2orize/\n+// Definitions by: Wonshik Kim <https://github.com/wokim/>, Kei Son <https://github.com/heycalmdown>\n+// Definitions: https://github.com/borisyankov/DefinitelyTyped\n+\n+/// <reference types=\"node\" />\n+\n+import * as http from \"http\";\n+\n+declare module \"oauth2orize\" {\n+\n+  interface ServerOptions {\n+    store: any;\n+    loadTransaction: boolean;\n+  }\n+  export function createServer(options?: ServerOptions): OAuth2Server;\n+\n+  export interface AuthorizeOptions {\n+    idLength?: number;\n+    sessionKey?: string;\n+  }\n+\n+  export interface ErrorHandlerOptions {\n+    mode?: string;\n+  }\n+\n+  export class OAuth2Server {\n+    exchange(fn: ExchangeFunction): OAuth2Server;\n+    exchange(type: string, fn: ExchangeFunction): OAuth2Server;\n+    // Parses requests to obtain authorization\n+    authorize(options: AuthorizeOptions, validate: (clientId: string, redirectURI: string, validated: (err: Error, client: any, redirectURI: string) => void) => void): Function;\n+    authorize(validate: (clientId: string, redirectURI: string, validated: (err: Error | null, client?: any, redirectURI?: string) => void) => void): Function;\n+    //authorization(options: AuthorizeOptions, validate: (clientId: string, redirectURI: string, validated: (err: Error, client: any, redirectURI: string) => void) => void): Function;\n+    //authorization(validate: (clientId: string, redirectURI: string, validated: (err: Error, client: any, redirectURI: string) => void) => void): Function;\n+    token(options?: any): (req: http.IncomingMessage, res: http.ServerResponse, next: any) => void;\n+    errorHandler(options?: any): (err: Error, req: http.IncomingMessage, res: http.ServerResponse, next: any) => void;\n+    serializeClient(fn: (client: any, done: (err: Error | null, id: string) => void) => void): void;\n+    serializeClient(client: any, done: (err: Error | null, id: string) => void): void;\n+    deserializeClient(fn: (id: string, done: (err: Error | null, client?: any | boolean) => void) => void): void;\n+    deserializeClient(obj: any, done: (err: Error | null, client?: any | boolean) => void): void;\n+  }\n+\n+  interface ExchangeFunction extends Function {","path":"oauth2orize/index.d.ts","position":null,"original_position":43,"commit_id":"30792df2b1bf2831fa6c45c0ea020fd90031ece1","original_commit_id":"694a22b65385c86ca90f87a5ae928366986d2094","user":{"login":"andy-ms","id":19274678,"avatar_url":"https://avatars.githubusercontent.com/u/19274678?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-ms","html_url":"https://github.com/andy-ms","followers_url":"https://api.github.com/users/andy-ms/followers","following_url":"https://api.github.com/users/andy-ms/following{/other_user}","gists_url":"https://api.github.com/users/andy-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-ms/subscriptions","organizations_url":"https://api.github.com/users/andy-ms/orgs","repos_url":"https://api.github.com/users/andy-ms/repos","events_url":"https://api.github.com/users/andy-ms/events{/privacy}","received_events_url":"https://api.github.com/users/andy-ms/received_events","type":"User","site_admin":false},"body":"Same for `IssuedFunction`","created_at":"2016-11-21T14:44:01Z","updated_at":"2016-11-21T14:44:01Z","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12712#discussion_r88907464","pull_request_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/12712","_links":{"self":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments/88907464"},"html":{"href":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12712#discussion_r88907464"},"pull_request":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/12712"}}},"pull_request":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/12712","id":93903486,"html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12712","diff_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12712.diff","patch_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12712.patch","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/12712","number":12712,"state":"open","locked":false,"title":"Typings for oauth2orize","user":{"login":"heycalmdown","id":154198,"avatar_url":"https://avatars.githubusercontent.com/u/154198?v=3","gravatar_id":"","url":"https://api.github.com/users/heycalmdown","html_url":"https://github.com/heycalmdown","followers_url":"https://api.github.com/users/heycalmdown/followers","following_url":"https://api.github.com/users/heycalmdown/following{/other_user}","gists_url":"https://api.github.com/users/heycalmdown/gists{/gist_id}","starred_url":"https://api.github.com/users/heycalmdown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heycalmdown/subscriptions","organizations_url":"https://api.github.com/users/heycalmdown/orgs","repos_url":"https://api.github.com/users/heycalmdown/repos","events_url":"https://api.github.com/users/heycalmdown/events{/privacy}","received_events_url":"https://api.github.com/users/heycalmdown/received_events","type":"User","site_admin":false},"body":"Please fill in this template.\r\n\r\n- [x] Prefer to make your PR against the `types-2.0` branch.\r\n- [x] Test the change in your own code.\r\n- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped#make-a-pull-request).\r\n- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped#common-mistakes).\r\n\r\nIf adding a new definition:\r\n- [x] The package does not provide its own types, and you can not add them.\r\n- [x] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.\r\n- [x] Run `tsc` without errors.\r\n- [x] Include the required [files](https://github.com/DefinitelyTyped/DefinitelyTyped#create-a-new-package) and header. Base these on the README, *not* on an existing project.\r\n","created_at":"2016-11-16T05:21:57Z","updated_at":"2016-11-21T14:44:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"759a3d1ba172bc114b06c297bcc14c6bb9ebaf1b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/12712/commits","review_comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/12712/comments","review_comment_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/12712/comments","statuses_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/30792df2b1bf2831fa6c45c0ea020fd90031ece1","head":{"label":"heycalmdown:oauth2orize","ref":"oauth2orize","sha":"30792df2b1bf2831fa6c45c0ea020fd90031ece1","user":{"login":"heycalmdown","id":154198,"avatar_url":"https://avatars.githubusercontent.com/u/154198?v=3","gravatar_id":"","url":"https://api.github.com/users/heycalmdown","html_url":"https://github.com/heycalmdown","followers_url":"https://api.github.com/users/heycalmdown/followers","following_url":"https://api.github.com/users/heycalmdown/following{/other_user}","gists_url":"https://api.github.com/users/heycalmdown/gists{/gist_id}","starred_url":"https://api.github.com/users/heycalmdown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heycalmdown/subscriptions","organizations_url":"https://api.github.com/users/heycalmdown/orgs","repos_url":"https://api.github.com/users/heycalmdown/repos","events_url":"https://api.github.com/users/heycalmdown/events{/privacy}","received_events_url":"https://api.github.com/users/heycalmdown/received_events","type":"User","site_admin":false},"repo":{"id":73460764,"name":"DefinitelyTyped","full_name":"heycalmdown/DefinitelyTyped","owner":{"login":"heycalmdown","id":154198,"avatar_url":"https://avatars.githubusercontent.com/u/154198?v=3","gravatar_id":"","url":"https://api.github.com/users/heycalmdown","html_url":"https://github.com/heycalmdown","followers_url":"https://api.github.com/users/heycalmdown/followers","following_url":"https://api.github.com/users/heycalmdown/following{/other_user}","gists_url":"https://api.github.com/users/heycalmdown/gists{/gist_id}","starred_url":"https://api.github.com/users/heycalmdown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heycalmdown/subscriptions","organizations_url":"https://api.github.com/users/heycalmdown/orgs","repos_url":"https://api.github.com/users/heycalmdown/repos","events_url":"https://api.github.com/users/heycalmdown/events{/privacy}","received_events_url":"https://api.github.com/users/heycalmdown/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/heycalmdown/DefinitelyTyped","description":"The repository for high quality TypeScript type definitions.","fork":true,"url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped","forks_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/forks","keys_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/teams","hooks_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/hooks","issue_events_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/issues/events{/number}","events_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/events","assignees_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/assignees{/user}","branches_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/branches{/branch}","tags_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/tags","blobs_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/git/refs{/sha}","trees_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/statuses/{sha}","languages_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/languages","stargazers_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/stargazers","contributors_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/contributors","subscribers_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/subscribers","subscription_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/subscription","commits_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/commits{/sha}","git_commits_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/git/commits{/sha}","comments_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/comments{/number}","issue_comment_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/issues/comments{/number}","contents_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/contents/{+path}","compare_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/merges","archive_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/downloads","issues_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/issues{/number}","pulls_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/pulls{/number}","milestones_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/milestones{/number}","notifications_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/labels{/name}","releases_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/releases{/id}","deployments_url":"https://api.github.com/repos/heycalmdown/DefinitelyTyped/deployments","created_at":"2016-11-11T08:44:13Z","updated_at":"2016-11-11T08:44:22Z","pushed_at":"2016-11-20T22:47:45Z","git_url":"git://github.com/heycalmdown/DefinitelyTyped.git","ssh_url":"git@github.com:heycalmdown/DefinitelyTyped.git","clone_url":"https://github.com/heycalmdown/DefinitelyTyped.git","svn_url":"https://github.com/heycalmdown/DefinitelyTyped","homepage":"http://definitelytyped.org/","size":146082,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DefinitelyTyped:types-2.0","ref":"types-2.0","sha":"96896fe428882f9e92fff5d1f2b5bad34c6bcbe9","user":{"login":"DefinitelyTyped","id":3637556,"avatar_url":"https://avatars.githubusercontent.com/u/3637556?v=3","gravatar_id":"","url":"https://api.github.com/users/DefinitelyTyped","html_url":"https://github.com/DefinitelyTyped","followers_url":"https://api.github.com/users/DefinitelyTyped/followers","following_url":"https://api.github.com/users/DefinitelyTyped/following{/other_user}","gists_url":"https://api.github.com/users/DefinitelyTyped/gists{/gist_id}","starred_url":"https://api.github.com/users/DefinitelyTyped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefinitelyTyped/subscriptions","organizations_url":"https://api.github.com/users/DefinitelyTyped/orgs","repos_url":"https://api.github.com/users/DefinitelyTyped/repos","events_url":"https://api.github.com/users/DefinitelyTyped/events{/privacy}","received_events_url":"https://api.github.com/users/DefinitelyTyped/received_events","type":"Organization","site_admin":false},"repo":{"id":6093316,"name":"DefinitelyTyped","full_name":"DefinitelyTyped/DefinitelyTyped","owner":{"login":"DefinitelyTyped","id":3637556,"avatar_url":"https://avatars.githubusercontent.com/u/3637556?v=3","gravatar_id":"","url":"https://api.github.com/users/DefinitelyTyped","html_url":"https://github.com/DefinitelyTyped","followers_url":"https://api.github.com/users/DefinitelyTyped/followers","following_url":"https://api.github.com/users/DefinitelyTyped/following{/other_user}","gists_url":"https://api.github.com/users/DefinitelyTyped/gists{/gist_id}","starred_url":"https://api.github.com/users/DefinitelyTyped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefinitelyTyped/subscriptions","organizations_url":"https://api.github.com/users/DefinitelyTyped/orgs","repos_url":"https://api.github.com/users/DefinitelyTyped/repos","events_url":"https://api.github.com/users/DefinitelyTyped/events{/privacy}","received_events_url":"https://api.github.com/users/DefinitelyTyped/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped","description":"The repository for high quality TypeScript type definitions.","fork":false,"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","forks_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/forks","keys_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/teams","hooks_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/hooks","issue_events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/events{/number}","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/events","assignees_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/assignees{/user}","branches_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/branches{/branch}","tags_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/tags","blobs_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/refs{/sha}","trees_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/{sha}","languages_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/languages","stargazers_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/stargazers","contributors_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/contributors","subscribers_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/subscribers","subscription_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/subscription","commits_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/commits{/sha}","git_commits_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/commits{/sha}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/comments{/number}","issue_comment_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments{/number}","contents_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/contents/{+path}","compare_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/merges","archive_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/downloads","issues_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues{/number}","pulls_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls{/number}","milestones_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/milestones{/number}","notifications_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels{/name}","releases_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/releases{/id}","deployments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/deployments","created_at":"2012-10-05T16:39:45Z","updated_at":"2016-11-21T14:07:21Z","pushed_at":"2016-11-21T14:41:06Z","git_url":"git://github.com/DefinitelyTyped/DefinitelyTyped.git","ssh_url":"git@github.com:DefinitelyTyped/DefinitelyTyped.git","clone_url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","svn_url":"https://github.com/DefinitelyTyped/DefinitelyTyped","homepage":"http://definitelytyped.org/","size":227730,"stargazers_count":8975,"watchers_count":8975,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7109,"mirror_url":null,"open_issues_count":1242,"forks":7109,"open_issues":1242,"watchers":8975,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/12712"},"html":{"href":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12712"},"issue":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/12712"},"comments":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/12712/comments"},"review_comments":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/12712/comments"},"review_comment":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/12712/commits"},"statuses":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/30792df2b1bf2831fa6c45c0ea020fd90031ece1"}}}}
{"actor":{"display_login":"andy-ms"}}