Daniel Rosenwasser
5a2a7021fa
Fix jake task, style/const in script.
2015-09-18 13:13:36 -07:00
Daniel Rosenwasser
f88f029fdf
Merge pull request #4862 from Microsoft/contextuallyTypeMethodDeclarations
...
Contextually type method declaration parameters in object literals
2015-09-18 12:34:40 -07:00
Daniel Rosenwasser
254af55204
Added missing predicate for contextual types of parameters.
2015-09-18 12:22:57 -07:00
Daniel Rosenwasser
2aa97bd1b9
Use custom type guard.
2015-09-18 12:22:52 -07:00
Daniel Rosenwasser
76da69c6c6
Added failing fourslash test.
2015-09-18 12:22:48 -07:00
Daniel Rosenwasser
3fa6b6de3a
Accepted baselines, issue not apparent in compiler tests.
2015-09-18 12:22:09 -07:00
Sheetal Nandi
400b353de2
Merge branch 'master' into tscJsFiles
2015-09-18 10:50:30 -07:00
Wesley Wigham
04b0aa269f
s/var/let
2015-09-18 10:29:54 -07:00
Punya Biswal
55218d64a5
Fix capitalization of minimumintegerDigits
2015-09-18 08:42:42 -04:00
Wesley Wigham
ccba427a27
whitespace!
2015-09-17 21:08:35 -07:00
Wesley Wigham
8a46de4d5c
Rework lint to use tslint-as-a-lib
2015-09-17 21:04:33 -07:00
Wesley Wigham
fe5bca8712
Next-line rule was too strict
...
We have a few places where we do this:
```ts
if {
//...
}
// Look, a comment
else {
//...
}
```
I don't think we want to forbid these cases, so I'm loosening the requirement from "must be on the line after the prior curly brace" to "can't be on the same line as the curly brace".
2015-09-17 19:11:44 -07:00
Daniel Rosenwasser
37ee17d40d
es3 -> es5.
2015-09-17 17:56:39 -07:00
Daniel Rosenwasser
925f0843d9
Add a jake task, .gitignore entry, and add tsd as a dev dependency.
2015-09-17 17:55:07 -07:00
Daniel Rosenwasser
bf989aa565
Final touches on the script.
2015-09-17 17:26:10 -07:00
Mohamed Hegazy
cd390fd83b
Merge branch 'master' of https://github.com/Microsoft/TypeScript
2015-09-17 17:16:00 -07:00
Wesley Wigham
e813963040
Merge pull request #4458 from weswigham/tslint-rules
...
Add tslint rules for #3994
2015-09-17 17:05:42 -07:00
Daniel Rosenwasser
23af2a7163
Improved command line interaction for 'importDefinitelyTypedTests' script.
2015-09-17 16:37:18 -07:00
Daniel Rosenwasser
22eef28cbd
forEach -> for-of, and other changes.
2015-09-17 16:33:50 -07:00
Mohamed Hegazy
1e0b9cab45
accept baselines
2015-09-17 16:14:58 -07:00
Mohamed Hegazy
98db640a2c
Fix documentation
2015-09-17 16:14:46 -07:00
Mohamed Hegazy
6969986bf0
Use intersection types in Object.assing defintion
2015-09-17 16:14:39 -07:00
Wesley Wigham
2793bc2acd
Feedback from PR, remove unused identifiers
2015-09-17 14:29:52 -07:00
Wesley Wigham
e200dadd9a
Merge pull request #4829 from weswigham/default-aliasing-bug
...
Default aliasing bug fix
2015-09-17 13:49:17 -07:00
Wesley Wigham
8d6cb5fbb5
Feedback from PR
2015-09-17 13:26:04 -07:00
Wesley Wigham
f2b901a3c7
reverts 60a120f, reexposes es6 option
2015-09-17 13:14:31 -07:00
Wesley Wigham
f3062c59fd
style nits
2015-09-17 13:03:47 -07:00
Daniel Rosenwasser
1ab10adbdc
Added tests.
2015-09-17 00:53:17 -07:00
Daniel Rosenwasser
8bb6313b22
Use explicit types, var -> let/const, misspellings, style.
2015-09-16 17:42:42 -07:00
Daniel Rosenwasser
a47b7b8f17
Added 'tsconfig.json' for 'importDefinitelyTypedTests' script.
2015-09-16 17:35:18 -07:00
Daniel Rosenwasser
9696e57772
Added tsd.json file with 'node.d.ts'.
2015-09-16 17:34:31 -07:00
Wesley Wigham
5dfca610f9
When targeting ES3 emit default alias as indexer
2015-09-16 17:33:49 -07:00
Daniel Rosenwasser
1500f5cd02
Moved importDefinitelyTypedTests.ts to its own folder.
2015-09-16 17:28:30 -07:00
Wesley Wigham
a2d7b09488
failing test
2015-09-16 15:47:52 -07:00
Sheetal Nandi
60e15b267d
Report error when emitting declarations if the reference is to .js file
2015-09-16 15:11:11 -07:00
Sheetal Nandi
e32c920cc2
Corrected scenario names in the test cases
2015-09-16 14:02:20 -07:00
Sheetal Nandi
fce9f32bd4
When tsconfig file doesnt contain file names, consume .js files of directory only if specified in the options
2015-09-16 13:57:51 -07:00
Sheetal Nandi
68c65cd29e
Test case when one of the input file is output file name
2015-09-16 13:22:10 -07:00
Sheetal Nandi
2860435a2e
Do not emit javascript files
2015-09-16 13:18:29 -07:00
Sheetal Nandi
14b608241d
Tests when the .ts and .js files are mixed in compilation with tscconfig file doesnt specifying any names
2015-09-16 12:52:33 -07:00
Vladimir Matveev
69321a031d
merge with master
2015-09-16 12:50:07 -07:00
Sheetal Nandi
dbb2772ed8
Tests when the .ts and .js files are mixed in compilation with tscconfig file specifying them
2015-09-16 12:47:45 -07:00
Vladimir Matveev
682c14cc7f
addressed PR feedback
2015-09-16 12:43:52 -07:00
Sheetal Nandi
0f73c1618c
When folder contains .d.ts as well as .js of same name and tsconfig doesnt contain any name
2015-09-16 12:41:44 -07:00
Sheetal Nandi
70d3de4668
When same named .d.ts and .js files are present and tscconfig contains .d.ts file
2015-09-16 12:38:11 -07:00
Sheetal Nandi
9daf635e5e
Verify and fix scenario when .js and .ts files with same name are present and tsconfig doesnt specify any filenames
2015-09-16 11:50:12 -07:00
Sheetal Nandi
bc48c7c9f0
Merge branch 'master' into tscJsFiles
2015-09-16 11:38:11 -07:00
Wesley Wigham
75a5c2229c
Fix import/export assignment checks to look at module kind rather than language version
2015-09-16 11:24:41 -07:00
Sheetal Nandi
8aeff929a1
Add tests when same named .ts and .js file exist with tsconfig file specifying .ts file
2015-09-16 11:21:13 -07:00
Wesley Wigham
60a120f22a
remove es6 as option from command line
2015-09-16 11:08:03 -07:00