{"action":"created","issue":{"url":"https://api.github.com/repos/koa-modules/methodoverride/issues/1","labels_url":"https://api.github.com/repos/koa-modules/methodoverride/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/koa-modules/methodoverride/issues/1/comments","events_url":"https://api.github.com/repos/koa-modules/methodoverride/issues/1/events","html_url":"https://github.com/koa-modules/methodoverride/issues/1","id":123107224,"number":1,"title":" app.use() requires a generator function","user":{"login":"LivesleyWA","id":5099314,"avatar_url":"https://avatars.githubusercontent.com/u/5099314?v=3","gravatar_id":"","url":"https://api.github.com/users/LivesleyWA","html_url":"https://github.com/LivesleyWA","followers_url":"https://api.github.com/users/LivesleyWA/followers","following_url":"https://api.github.com/users/LivesleyWA/following{/other_user}","gists_url":"https://api.github.com/users/LivesleyWA/gists{/gist_id}","starred_url":"https://api.github.com/users/LivesleyWA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LivesleyWA/subscriptions","organizations_url":"https://api.github.com/users/LivesleyWA/orgs","repos_url":"https://api.github.com/users/LivesleyWA/repos","events_url":"https://api.github.com/users/LivesleyWA/events{/privacy}","received_events_url":"https://api.github.com/users/LivesleyWA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-19T19:53:51Z","updated_at":"2015-12-21T10:15:00Z","closed_at":null,"body":"(Typescript) Code is as follows:-\r\n\r\n```\r\nimport * as KOA_METHOD_OVERRIDE from \"koa-methodoverride\";\r\n...\r\nthis.server.use(KOA_METHOD_OVERRIDE());\r\n```\r\n\r\nkoa 1.1.2\r\n\r\nThe code gets as far as *return (ctx, next) => {* in the index.js file.\r\n\r\nIs this something to do with the switch to Koa v2?"},"comment":{"url":"https://api.github.com/repos/koa-modules/methodoverride/issues/comments/166260097","html_url":"https://github.com/koa-modules/methodoverride/issues/1#issuecomment-166260097","issue_url":"https://api.github.com/repos/koa-modules/methodoverride/issues/1","id":166260097,"user":{"login":"coderhaoxin","id":2569835,"avatar_url":"https://avatars.githubusercontent.com/u/2569835?v=3","gravatar_id":"","url":"https://api.github.com/users/coderhaoxin","html_url":"https://github.com/coderhaoxin","followers_url":"https://api.github.com/users/coderhaoxin/followers","following_url":"https://api.github.com/users/coderhaoxin/following{/other_user}","gists_url":"https://api.github.com/users/coderhaoxin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderhaoxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderhaoxin/subscriptions","organizations_url":"https://api.github.com/users/coderhaoxin/orgs","repos_url":"https://api.github.com/users/coderhaoxin/repos","events_url":"https://api.github.com/users/coderhaoxin/events{/privacy}","received_events_url":"https://api.github.com/users/coderhaoxin/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T10:15:00Z","updated_at":"2015-12-21T10:15:00Z","body":"@LivesleyWA  you need use koa-methodoverride@1 for koa@1"}}