@implab/dojo-typings

Improved version of the original dojo-typings

Usage no npm install needed!

<script type="module">
  import implabDojoTypings from 'https://cdn.skypack.dev/@implab/dojo-typings';
</script>

README

dojo-typings

This project is forked from the original dojo-typings package to improve it with more tight and customizable type definitions.

The primary aims are

  • Parametrize collections with items type.
  • Distinguish sync and async methods in stores.
  • Parametrize widget typings with event and attribute maps.

Changes

1.0.1

Maintenance release

  • NodeList-fx added overloads to all methods to distinguish returned values of different types (Animation | this).
  • Added missing signatures to NodeList constructor
  • Improved dijit.form._FormWidgetMixin
  • Added module declarations dijit/form/_FormWidgetMixin, dijit/form/_FormValueMixin, dijit/_HasDropDown

1.0.0

Initial release

  • Parametrized dojo/Stateful, diji/_WidgetBase
  • split dojo.store.api.Store in two SyncStore and AsyncStore interfaces
    • dojo/store/Memory implements SyncStore and can be used synchronously,
    • dojo/store/Rest implements AsyncStore and all its methods are returning explicit promises.