{"action":"opened","issue":{"url":"https://api.github.com/repos/winterbe/streamjs/issues/34","labels_url":"https://api.github.com/repos/winterbe/streamjs/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/winterbe/streamjs/issues/34/comments","events_url":"https://api.github.com/repos/winterbe/streamjs/issues/34/events","html_url":"https://github.com/winterbe/streamjs/issues/34","id":88088277,"number":34,"title":"Static factory method for creating streams from arrays","user":{"login":"erosb","id":273158,"avatar_url":"https://avatars.githubusercontent.com/u/273158?v=3","gravatar_id":"","url":"https://api.github.com/users/erosb","html_url":"https://github.com/erosb","followers_url":"https://api.github.com/users/erosb/followers","following_url":"https://api.github.com/users/erosb/following{/other_user}","gists_url":"https://api.github.com/users/erosb/gists{/gist_id}","starred_url":"https://api.github.com/users/erosb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erosb/subscriptions","organizations_url":"https://api.github.com/users/erosb/orgs","repos_url":"https://api.github.com/users/erosb/repos","events_url":"https://api.github.com/users/erosb/events{/privacy}","received_events_url":"https://api.github.com/users/erosb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-14T00:12:39Z","updated_at":"2015-06-14T00:12:39Z","closed_at":null,"body":"I'm working on a [typescript definition file](https://github.com/erosb/DefinitelyTyped/blob/streamjs/streamjs/streamjs.d.ts) for streamjs.\r\n\r\nI found that the only way to create a stream from an array is to invoke `Stream(array)` as a function. It works in javascript but sadly typescript currently does not have support to define a class and a function with the same name, so I cannot include it in my typescript definition file.\r\n\r\nI would be pleased if you could add a `Stream.from(array)` static factory method so that I could create an appropriate definition for it in my streamjs.d.ts file. "}}