Steven Salat
575a77c921
Added test for parseJSON
2014-05-15 14:23:05 -07:00
Steven
9af5cff974
$.parseJSON should return any instead of Object
...
Here is my test:
```js
var i = JSON.parse('1');
var a = JSON.parse('[1]');
var o = JSON.parse('{"foo":"bar"}');
var s = JSON.parse('"string"');
var n = JSON.parse('null');
i instanceof Object; // false
a instanceof Object; // true
o instanceof Object; // true
s instanceof Object; // false
n instanceof Object; // false
```
JSON.parse returns the `any` type so I think this method should do the same.
More of the discussion regarding this pull request can be found on the original commit 8c23d04a5b
https://github.com/borisyankov/DefinitelyTyped/commit/8c23d04a5b4a0505df042a82be90f95adff02d87
2014-05-14 18:00:49 -07:00
Masahiro Wakame
9371c65e5a
Merge pull request #2186 from zaneli/offline_audio_context
...
Add webkitOfflineAudioContext definition, and remove invalid constructor.
2014-05-13 14:06:52 +09:00
Masahiro Wakame
b7bd0b8d81
Merge pull request #2184 from gyohk/master
...
Removed unnecessary description of the test code. And, correct errors ...
2014-05-13 14:05:26 +09:00
Masahiro Wakame
ffc0bd2f2a
Merge pull request #2185 from domesticmouse/patch-2
...
Making gapi.auth.authorize accept string|array
2014-05-13 14:05:06 +09:00
zaneli
28e92405ba
remove unnecessary .tscparams files
2014-05-13 13:54:08 +09:00
zaneli
d5613ac757
Add webkitOfflineAudioContext definition, and remove invalid constructor.
2014-05-13 13:51:00 +09:00
Brett Morgan
89990ad9e2
Making gapi.auth.authorize accept string|array
...
Per the docs[1] gapi.auth.authorize accepts a lone string, as well as an array of strings. From my limited testing the any type appears to accept both string and array of string.
1: https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauthauthorize
2014-05-13 14:40:22 +10:00
satoru kimura
d900e75c0b
Removed unnecessary description of the test code. And, correct errors detected in WebStorm.
2014-05-13 12:42:39 +09:00
vvakame
31d78289ce
update package.json. use TypeScript 1.0.1 on test runner
2014-05-13 12:38:01 +09:00
vvakame
887dfd3c68
add TypeScript 1.0.2.1(225bad534ce29fb27e66b451a501ccc18518e33c) to _infrastructure
2014-05-13 11:46:44 +09:00
vvakame
ed08c5278d
add TypeScript 1.0.1 to _infrastructure
2014-05-13 11:45:00 +09:00
Masahiro Wakame
68fd50f64b
Merge pull request #2159 from DanielRosenwasser/master
...
Removed type queries used on interface members.
2014-05-12 23:08:52 +09:00
Masahiro Wakame
f651151528
Merge pull request #2152 from rolandzwaga/oclazyload
...
Added definitions for ocLazyLoad (https://github.com/ocombe/ocLazyLoad )
2014-05-12 23:03:29 +09:00
Masahiro Wakame
212e324fd4
Merge pull request #2182 from rolandzwaga/angular-agility
...
Added definitions for AngularAgility
2014-05-12 23:01:41 +09:00
Masahiro Wakame
8dbfa75db8
Merge pull request #2173 from gyohk/master
...
Divided test scripts for ease of update.
2014-05-12 23:00:17 +09:00
Roland Zwaga
a54d732adf
Update CONTRIBUTORS.md
...
Added entry for AngularAgility definitions
2014-05-12 14:47:45 +02:00
Roland Zwaga
a73a28b651
Added definitions and tests for AngularAgility ( https://github.com/AngularAgility/AngularAgility )
2014-05-12 14:45:43 +02:00
Roland Zwaga
cbdb55c47e
Update CONTRIBUTORS.md
...
Added entry for ocLazyLoad
2014-05-12 12:25:05 +02:00
Masahiro Wakame
f49ad5a901
Merge pull request #2180 from pine613/feature/chrome/tabs_onreplaced
...
Add onReplaced event
2014-05-12 17:49:40 +09:00
satoru kimura
defdc43669
Returned the file name of the test script.
2014-05-12 17:25:27 +09:00
MIZUNE Pine
86276c89b5
Add onReplaced event
2014-05-12 16:39:46 +09:00
Masahiro Wakame
78892546d2
Merge pull request #2179 from pine613/feature/chrome/tabs_update
...
Add overload
2014-05-12 15:15:23 +09:00
Masahiro Wakame
8e9d0a5fde
Merge pull request #2178 from horiuchi/angularLocalStorage
...
Add definition of angularLocalStorage
2014-05-12 15:14:54 +09:00
MIZUNE Pine
31de121e43
tabId is optional
2014-05-12 15:07:52 +09:00
Horiuchi_H
3fe4b97009
add declare module
2014-05-12 14:45:19 +09:00
Masahiro Wakame
6c578814d3
Merge pull request #2177 from Stilgar84/master
...
For d3.js "typing": Make optional the before argument of enter().insert('')
2014-05-12 13:07:14 +09:00
Masahiro Wakame
614ce37a16
Merge pull request #2172 from zaneli/jquery.tile
...
Add definitions for jquery.tile.js
2014-05-12 12:32:13 +09:00
Masahiro Wakame
5d8cd14474
Merge pull request #2171 from M0ns1gn0r/lzstring
...
Add definitions for lz-string
2014-05-12 12:27:42 +09:00
Horiuchi_H
ff509b3f71
add angularLocalStorage type files
2014-05-12 11:49:57 +09:00
Cedric Venet
b79abf8203
Make optional the before argument of enter().insert('')
...
From the documentation: "For enter selections, the before selector may
be omitted, [...]"
2014-05-11 23:50:35 +02:00
Masahiro Wakame
e9b0f608b1
Merge pull request #2174 from vvakame/improve-atom.d.ts
...
improve atom/atom.d.ts and space-pen/space-pen.d.ts
2014-05-12 02:32:45 +09:00
vvakame
705102df2b
improve atom/atom.d.ts and space-pen/space-pen.d.ts
2014-05-12 02:30:58 +09:00
satoru kimura
eac08fbf8d
Divided test scripts for ease of update.
2014-05-12 01:46:02 +09:00
zaneli
31aa5b1c61
Add definitions for jquery.tile.js
2014-05-11 22:56:05 +09:00
Monsignor
0346917afe
Add definitions for lz-string
...
Definitions apply to lz-string v1.3.3.
2014-05-11 11:45:26 +02:00
vvakame
a23785ab1b
remove not required .tscparams
2014-05-11 11:22:03 +09:00
Masahiro Wakame
5c919dfc76
Merge pull request #2166 from vvakame/improve-atom.d.ts
...
improve atom/atom.d.ts and pathwatcher/pathwatcher.d.ts
2014-05-11 01:41:05 +09:00
vvakame
e722b5d4ca
fix travis-ci
2014-05-11 01:39:03 +09:00
vvakame
c8bfe5cbfe
fix travis-ci
2014-05-11 01:35:09 +09:00
vvakame
6c701a398b
improve atom/atom.d.ts and pathwatcher/pathwatcher.d.ts
2014-05-11 01:32:28 +09:00
Masahiro Wakame
c1899c1de0
Merge pull request #2163 from vvakame/improve-atom.d.ts
...
improve atom/atom.d.ts and others. add status-bar/status-bar.d.ts.
2014-05-10 23:00:14 +09:00
vvakame
ee72e6e294
improve atom/atom.d.ts and others. add status-bar/status-bar.d.ts.
2014-05-10 22:56:58 +09:00
Masahiro Wakame
b2300eae58
Merge pull request #2162 from vvakame/improve-atom.d.ts
...
improve atom/atom.d.ts and text-buffer/text-buffer.d.ts
2014-05-10 19:35:31 +09:00
vvakame
21be490958
fix travis-ci
2014-05-10 19:34:25 +09:00
vvakame
6af8618c81
improve atom/atom.d.ts and text-buffer/text-buffer.d.ts
2014-05-10 19:31:25 +09:00
Masahiro Wakame
f5f173b867
Merge pull request #2160 from vvakame/improve-atom.d.ts
...
improve atom/atom.d.ts and add text-buffer/text-buffer.d.ts
2014-05-10 13:33:02 +09:00
vvakame
606e253e24
fix travis ci failed
2014-05-10 13:31:10 +09:00
vvakame
ef3450cebd
improve atom/atom.d.ts and add text-buffer/text-buffer.d.ts
2014-05-10 13:26:12 +09:00
Daniel Rosenwasser
e086199310
Removed type queries used on interface members.
...
typeof cannot be used on members within an interface.
It is currently permitted due to bug in the TypeScript compiler.
2014-05-09 17:30:48 -07:00