{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7545","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7545/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7545/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7545/events","html_url":"https://github.com/Microsoft/TypeScript/issues/7545","id":141356712,"number":7545,"title":"Unable to augment `export = function/namespace`","user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Fixed","name":"Fixed","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/1","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%202.0","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/1/labels","id":721040,"number":1,"title":"TypeScript 2.0","description":"The next major release of TypeScript","creator":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"open_issues":134,"closed_issues":104,"state":"open","created_at":"2014-07-14T23:24:03Z","updated_at":"2016-03-16T18:49:01Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-03-16T18:15:05Z","updated_at":"2016-03-16T18:55:50Z","closed_at":"2016-03-16T18:48:52Z","body":"Possible duplicate of https://github.com/Microsoft/TypeScript/issues/7148, but it seems like it should be working according to https://github.com/Microsoft/TypeScript/pull/6742.\r\n\r\n**TypeScript Version:** \r\n\r\n1.8.7\r\n\r\n**Code**\r\n\r\nFile: `1.d.ts`\r\n\r\n```ts\r\ndeclare module 'm1' {\r\n  function x (): x.Test;\r\n\r\n  namespace x {\r\n    export interface Test {\r\n      prop1: boolean;\r\n    }\r\n  }\r\n\r\n  export = x;\r\n}\r\n```\r\n\r\nFile: `2.ts`\r\n\r\n```ts\r\n/// <reference path=\"./1.d.ts\" />\r\n\r\nimport m1 = require('m1');\r\n\r\ndeclare module 'm1' {\r\n  interface Test {\r\n    prop2: boolean;\r\n  }\r\n}\r\n\r\nm1().prop2 // `prop2` does not exist on type `Test`.\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nInterfaces should merge, giving me access to `prop2`.\r\n\r\n**Actual behavior:** \r\n\r\nNo `prop2` on interface `Test`."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/197488946","html_url":"https://github.com/Microsoft/TypeScript/issues/7545#issuecomment-197488946","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7545","id":197488946,"user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T18:55:49Z","updated_at":"2016-03-16T18:55:49Z","body":"@Guria If you want to type moment plugins, looks like you'll need to be using `typescript@next`. (Ref: https://github.com/Microsoft/TypeScript/issues/7148#issuecomment-197347289)."}}