Commit Graph

42 Commits

Author SHA1 Message Date
Frederic Junod 7cb85fa975 Don't define functions in the prototype
If `VOID` is used, TypeScript is not able to figure out what the function parameters are.

Before:
```
$ npx tsc | wc -l
    1188
```

After:
```
$ npx tsc | wc -l
    1169
```
2018-09-19 08:40:14 +02:00
Tim Schaub ccfacc5ee6 Transformed types
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e):

    jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Tim Schaub 6cfa2b22a7 Explicit void 2018-07-26 10:46:39 -06:00
Tim Schaub affbf59b77 Use Object<Foo, Bar> instead of Object.<Foo, Bar> 2018-07-25 18:33:49 -07:00
Tim Schaub 6f22f1b7ac Param name on same line as type 2018-07-23 16:28:22 -07:00
Tim Schaub b8c9125602 Remove lint 2018-07-18 10:35:54 -06:00
Frederic Junod 65b306891b Remove 'struct' jsdoc tags, code indentation 2018-07-18 09:07:27 +02:00
Tim Schaub c4e5a7467e Clean up ol/renderer classes 2018-07-17 18:26:51 -06:00
Tim Schaub 7b4a73f3b9 Automated class transform
npx lebab --replace src --transform class
2018-07-16 16:18:16 -06:00
ahocevar 28409486a5 Make classes in ol/ available as named exports from ol 2018-06-21 18:08:17 +02:00
Frederic Junod af1f6836af Shorter module paths for default exports 2018-05-09 11:24:43 +02:00
ahocevar 440d1ad3e1 Shorter module paths for default exports 2018-04-25 17:25:39 +02:00
Frederic Junod 7701c5fd3a Module type for ol.render.Feature 2018-04-20 14:53:56 +02:00
Frederic Junod 05f92c0333 Module type for ol.source.Tile 2018-04-20 14:37:46 +02:00
Frederic Junod bd9e603036 Module type for ol.layer.Layer 2018-03-23 08:44:21 +01:00
Frederic Junod 1eef986824 Module type for ol.Observable 2018-03-19 16:59:01 +01:00
Frederic Junod 5173970f53 Module type for ol.Image 2018-03-19 16:07:09 +01:00
Frederic Junod 857b946f3e Module type for ol.events.Event 2018-03-19 14:31:04 +01:00
Frederic Junod 93b2fe0e95 Module type for ol.Tile 2018-03-19 14:31:04 +01:00
Frederic Junod edce8785ee Module type for ol.ImageBase 2018-03-19 14:31:04 +01:00
Frederic Junod 2d9014ce11 Module type for ol.PluggableMap 2018-03-19 08:49:56 +01:00
Frederic Junod 76fb0edf0d Use path type instead of ol.tilegrid.TileGrid 2018-03-15 14:20:49 +01:00
Frederic Junod 8c58bb4332 Use 'module:ol/PluggableMap~FrameState' instead of 'olx.FrameState' 2018-03-13 16:06:46 +01:00
Tim Schaub cf80733e41 Module type for ol/Feature 2018-03-12 08:32:09 -06:00
Tim Schaub 5c9aa0ce93 Module type for ol/TileRange 2018-03-12 08:32:09 -06:00
Tim Schaub a743ec3989 Module types for ol/proj 2018-03-12 08:32:09 -06:00
Andreas Hocevar 95d6251dbb Get rid of olx.js and typedef.js typedefs for ol 2018-03-08 18:57:24 +01:00
Frederic Junod 3435ac575e Better type definition
Fixes the `Invalid type(s) for operator IN.` warnings from the closure compiler.
2018-03-07 16:45:46 +01:00
Frederic Junod b50a47114e Move the nullFunction to ol/functions
And rename it to `UNDEFINED`.
2018-03-01 14:41:18 +01:00
Tim Schaub 7e7631c42a Named exports from ol/events 2018-01-24 10:09:57 -07:00
Tim Schaub ad62739a6e Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Frederic Junod 3ce95099e9 Rename _ol_renderer_Layer_ to LayerRenderer 2018-01-11 14:23:26 +01:00
Tim Schaub 35db8721b2 Rename _ol_Observable_ to Observable 2018-01-10 09:35:43 -07:00
Frederic Junod fc00aecd2e Rename _ol_TileState_ to TileState 2017-12-22 09:00:46 +01:00
Frederic Junod d0728a5e65 Rename _ol_source_State_ to SourceState 2017-12-19 08:33:14 +01:00
Frederic Junod 0a895a2867 Rename _ol_ImageState_ to ImageState 2017-12-18 10:51:21 +01:00
Tim Schaub b7e9b8b461 Remove logos 2017-12-16 08:46:50 -07:00
Marc Jansen 479c7a4668 Rename _ol_events_EventType_ to EventType 2017-12-15 16:19:03 +01:00
Frederic Junod 2498bba90a Named exports from ol/functions 2017-12-15 13:44:32 +01:00
Tim Schaub 87295a74dd Use named exports from ol/index.js 2017-12-12 12:34:23 -07:00
Tim Schaub 7f47883c48 Transformed 2017-12-12 06:53:18 -07:00
Tim Schaub 1cdb6a66f0 Imports cased like the filename 2017-12-12 06:53:17 -07:00