{"action":"created","issue":{"url":"https://api.github.com/repos/meteor-typescript/meteor-typescript-libs/issues/41","labels_url":"https://api.github.com/repos/meteor-typescript/meteor-typescript-libs/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/meteor-typescript/meteor-typescript-libs/issues/41/comments","events_url":"https://api.github.com/repos/meteor-typescript/meteor-typescript-libs/issues/41/events","html_url":"https://github.com/meteor-typescript/meteor-typescript-libs/issues/41","id":123276304,"number":41,"title":"Typing of Meteor.settings","user":{"login":"horyd","id":916414,"avatar_url":"https://avatars.githubusercontent.com/u/916414?v=3","gravatar_id":"","url":"https://api.github.com/users/horyd","html_url":"https://github.com/horyd","followers_url":"https://api.github.com/users/horyd/followers","following_url":"https://api.github.com/users/horyd/following{/other_user}","gists_url":"https://api.github.com/users/horyd/gists{/gist_id}","starred_url":"https://api.github.com/users/horyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horyd/subscriptions","organizations_url":"https://api.github.com/users/horyd/orgs","repos_url":"https://api.github.com/users/horyd/repos","events_url":"https://api.github.com/users/horyd/events{/privacy}","received_events_url":"https://api.github.com/users/horyd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-21T13:07:33Z","updated_at":"2016-01-01T00:10:57Z","closed_at":null,"body":"Is there an explicit reason for this typing on Meteor.settings?\r\n\r\n```\r\nvar settings: {[id:string]: any};\r\n```\r\n\r\nI realise that the standard is to write the settings.json file with keys in quotations, but when using the object in code it's a little weird. Using ```Meteor.settings.public.sentry.dsn``` works fine, but the TypeScript wants to always see ```Meteor.settings[\"public\"].sentry.dsn```. It then can get confusing if you also have private settings in the main object as ```Meteor.settings.sentry.dsn```, which it wants to see as ```Meteor.settings[\"sentry\"].dsn``` (if not using the \"private\" key which is available but not entirely necessary)\r\n\r\nI'm a bit of a TypeScript beginner so correct me if my thinking is down the wrong track :)"},"comment":{"url":"https://api.github.com/repos/meteor-typescript/meteor-typescript-libs/issues/comments/168265385","html_url":"https://github.com/meteor-typescript/meteor-typescript-libs/issues/41#issuecomment-168265385","issue_url":"https://api.github.com/repos/meteor-typescript/meteor-typescript-libs/issues/41","id":168265385,"user":{"login":"fullflavedave","id":543962,"avatar_url":"https://avatars.githubusercontent.com/u/543962?v=3","gravatar_id":"","url":"https://api.github.com/users/fullflavedave","html_url":"https://github.com/fullflavedave","followers_url":"https://api.github.com/users/fullflavedave/followers","following_url":"https://api.github.com/users/fullflavedave/following{/other_user}","gists_url":"https://api.github.com/users/fullflavedave/gists{/gist_id}","starred_url":"https://api.github.com/users/fullflavedave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullflavedave/subscriptions","organizations_url":"https://api.github.com/users/fullflavedave/orgs","repos_url":"https://api.github.com/users/fullflavedave/repos","events_url":"https://api.github.com/users/fullflavedave/events{/privacy}","received_events_url":"https://api.github.com/users/fullflavedave/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T00:10:57Z","updated_at":"2016-01-01T00:10:57Z","body":"Sorry for the delay -- holiday/vacation laziness.\r\n\r\nYour code worked great for me, and I'll update the next release with it.  Thanks for your contribution!"}}