Commit Graph
40 Commits
Author SHA1 Message Date
Basarat Ali Syed 59032308a2 📝 https://www.npmjs.com/package/codemirror 2015-09-06 14:35:11 +10:00
Basarat Ali Syed 2c2efb33ca Update and rename showhint-tests.ts to codemirror-showhint-tests.ts
Makes it easier to search + more semantic
2015-09-06 14:25:34 +10:00
Basarat Ali Syed 47b5ecf690 Rename showhint.d.ts to codemirror-showhint.d.ts
Makes it easier to search + more semantic
2015-09-06 14:24:51 +10:00
Masahiro Wakame 18da9cb4a3 Merge pull request #5308 from jacqt/master
Added typings for the CodeMirror showhint addon
2015-09-01 02:15:13 +09:00
Anthony Guo c340b3634c Added typings for the CodeMirror showhint addon 2015-08-25 15:26:10 -07:00
Nick Chang 0a9004eb58 CodeMirror: EditorConfiguration.lint can be boolean 2015-08-21 07:41:34 -07:00
Alex Manekovskiy b9ba90e8ef Added missing CodeMirror.Doc method - listSelections
The missing method is listed in documentation in [Selection](https://codemirror.net/doc/manual.html#api_selection) section between `doc.getCursor` and `doc.somethingSelected` methods.
2015-08-04 17:03:10 +03:00
vvakame f55c219168 Merge branch 'master' into refactor-codemirror 2015-08-04 20:01:07 +09:00
Masahiro Wakame 3e96a2860b Merge pull request #5146 from Carreau/onchanges
[CodeMirror] Add onchanges that triggers on a per operation basis.
2015-08-04 19:49:32 +09:00
Masahiro Wakame b1939bd36c Merge pull request #5080 from Carreau/removed-is-array
[CodeMirror] removed is actually a list of string.
2015-08-04 19:48:29 +09:00
vvakame d9062429c3 refactor constructor interface of codemirror 2015-08-04 02:09:12 +09:00
Masahiro Wakame 55bd57fdb7 Merge pull request #5065 from Carreau/TextMarkerOptions.css
[CodeMirror] add a few missing property on TextMarkerOptions
2015-08-02 22:53:24 +09:00
Matthias Bussonnier 6e3410f047 [CodeMirror] Add onchanges that triggers on a per operation basis.
cf doc for this event:
http://codemirror.net/doc/manual.html#event_changes
2015-07-30 10:27:21 -07:00
Masahiro Wakame 4bab670ab7 Merge pull request #4857 from jacqt/master
codemirror.d.ts: Changed the Doc class type to an interface
2015-07-28 23:20:47 +09:00
Matthias Bussonnier 7518bed77b [CodeMirror] removed is actually a list of string.
as is test on the same object.
2015-07-25 18:15:45 -07:00
Matthias Bussonnier e5f0425b97 these are actually optionals 2015-07-24 15:14:02 -07:00
Matthias Bussonnier e6764f406b wrap explanation 2015-07-24 15:12:41 -07:00
Matthias Bussonnier 63e1e0c2b4 Add other missing attributes. 2015-07-24 15:10:00 -07:00
Matthias Bussonnier bcb9de30af [CodeMirror] add missing css? property on TextMarkerOptions 2015-07-24 14:30:05 -07:00
Matthias Bussonnier ab7f747635 Change event in codemirror also have a origin field
It can take different value depending on where it comes from and gover
history merging, various values are `+move` `+insert` `+remove`
`setValue`.
2015-07-20 21:15:44 -07:00
Anthony Guo ad21a10ba7 codemirror.d.ts: Changed the Doc class type to an interface, and exposed the CodeMirror.Pos constructor
This allows the user to extend the definition for the CodeMirror.Doc
interface over multiple files. It also allows for instantiating new
CodeMirror.Position type objects using "new CodeMirror.Pos(...)"
2015-07-10 15:38:59 -07:00
Calvin Fernandez ed0860feec added typings for codemirror's lint addon 2015-06-25 14:47:45 -04:00
Andrew Audibert 4acd5f8775 Add typings for dealing with modes in codemirror 2015-03-20 14:53:12 -07:00
jeremyhayes 6ea56ebe07 codemirror: add Doc.findMarks 2015-02-28 22:13:50 -05:00
Xiaohan Zhang 0a6d75d4a1 Add StringStream definition for codemirror
taken from https://codemirror.net/doc/manual.html#modeapi

Eventually we'll need to add in the actual mode object but that's a whole different beast.
I couldn't find documentation on lastColumnPos, lastColumnValue, or lineStart. Let me know if it's alright to just leave them undocumented. Thanks!
2014-09-30 13:55:24 -07:00
Xiaohan Zhang 74d8b10775 Add definitions for fromTextArea methods 2014-07-25 17:38:54 -07:00
Ryan 84f63e9cc3 Added signal function to CodeMirror module 2014-07-16 13:27:04 -07:00
Bartvds 0efeed5c45 added/fixed headers a-d
https://github.com/borisyankov/DefinitelyTyped/issues/1570
2014-01-24 00:22:06 +01:00
vvakame 6ab4ffae2b Remove not required tscparams 2014-01-02 16:34:52 +09:00
Mark Wong Siang Kai a11a5d90e6 Specified typings for functions returning void
-- note that removeKeyMap in codemirror.js returns true sometimes
-- but I think it should only return
2013-12-11 16:12:31 -08:00
vvakame 2708bc05cd Fixed tsc failed on Node.js v0.8.25 2013-10-03 11:23:38 +09:00
vvakame 3fe1f6bc4e Fixed to CI test passing 2013-10-03 10:18:58 +09:00
mihailik c72caf82d2 Incorrect number type for autofocus option, should be boolean. 2013-06-26 00:16:05 +02:00
mihailik d537ae6279 Just a couple more tests, nowhere near of acceptable amount. 2013-06-25 02:05:45 +02:00
mihailik 4d3992f9d2 Updated using features in TypeScript v0.9
Previously the module name couldn't match the global function name, so we had to declare module 'CM' and function CodeMirror.

Now that TS can handle the naming clash correctly, we will go to the naming convention from CodeMirror docs.

Additionally, that allows using constructor for CodeMirror.Doc. Previously because of naming CM.Doc that wouldn't work.

Note that CodeMirror itself is not declared as a class, even though their actual implementation does allow 'newing' it internally. However, that is not advertised in the docs, so we assume it is a quirk for some edge case compatibility and leaving it out of the API declarations here.
2013-06-25 02:02:29 +02:00
mihailik 27ff79c5b3 Completely redone the typings from the docs.
Using 0.9 (generics and override by string literal).
2013-04-24 02:27:21 +02:00
Boris Yankov 209d95071a Update reference paths 2013-01-17 20:03:30 +02:00
Boris Yankov c98eebb137 Rename all definition files, remove versions 2013-01-17 17:17:27 +02:00
Boris Yankov 7c82efb17a Update reference paths 2012-11-19 01:28:08 +02:00
Boris Yankov c91c45f9ae Move definitions and test in separate folders
This enables each definition to have a readme if necessary.
Also a .json metadata file to help with package managers.
And last, to have different versions of the definitions.
2012-11-18 22:28:44 +02:00