{"comment":{"url":"https://api.github.com/repos/glen-84/DefinitelyTyped/comments/15316765","html_url":"https://github.com/glen-84/DefinitelyTyped/commit/d4220eb84cc4da540909c7e65d63028e399bbdcd#commitcomment-15316765","id":15316765,"user":{"login":"joeskeen","id":12286274,"avatar_url":"https://avatars.githubusercontent.com/u/12286274?v=3","gravatar_id":"","url":"https://api.github.com/users/joeskeen","html_url":"https://github.com/joeskeen","followers_url":"https://api.github.com/users/joeskeen/followers","following_url":"https://api.github.com/users/joeskeen/following{/other_user}","gists_url":"https://api.github.com/users/joeskeen/gists{/gist_id}","starred_url":"https://api.github.com/users/joeskeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeskeen/subscriptions","organizations_url":"https://api.github.com/users/joeskeen/orgs","repos_url":"https://api.github.com/users/joeskeen/repos","events_url":"https://api.github.com/users/joeskeen/events{/privacy}","received_events_url":"https://api.github.com/users/joeskeen/received_events","type":"User","site_admin":false},"position":11,"line":11,"path":"micromatch/micromatch-tests.ts","commit_id":"d4220eb84cc4da540909c7e65d63028e399bbdcd","created_at":"2016-01-07T14:23:43Z","updated_at":"2016-01-07T14:23:43Z","body":"Something that would be good to add to the tests is a way to verify the correct return type.  Although there are a number of ways to do this, one would be to declare a `boolean` type variable and assign the result of `isMatch`, `contains`, etc. to it.  If the type definition changed in the future and started returning something else, it would catch the error.\r\n\r\nExample:\r\n```js\r\nlet boolResult: boolean;\r\n\r\nboolResult = mm.isMatch('verb.md', '*.md');\r\nboolResult = mm.isMatch('verb.md', '*.md', {dot: true});\r\n...\r\n```"}}