8
0
Просмотр исходного кода

Update returned types in conversion.for() method.

Maciej Gołaszewski 7 лет назад
Родитель
Сommit
1af32efd20
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      packages/ckeditor5-engine/src/conversion/conversion.js

+ 2 - 1
packages/ckeditor5-engine/src/conversion/conversion.js

@@ -87,6 +87,7 @@ export default class Conversion {
 	 * module:engine/conversion/upcastdispatcher~UpcastDispatcher|Array.<module:engine/conversion/downcastdispatcher~DowncastDispatcher|
 	 * module:engine/conversion/upcastdispatcher~UpcastDispatcher|Array.<module:engine/conversion/downcastdispatcher~DowncastDispatcher|
 	 * module:engine/conversion/upcastdispatcher~UpcastDispatcher>} options.dispatcher Dispatcher or array of dispatchers to register
 	 * module:engine/conversion/upcastdispatcher~UpcastDispatcher>} options.dispatcher Dispatcher or array of dispatchers to register
 	 * under the given name.
 	 * under the given name.
+	 * @param {module:engine/conversion/downcast-converters~DowncastHelpers} helpers
 	 */
 	 */
 	register( options ) {
 	register( options ) {
 		if ( this._dispatchersGroups.has( options.name ) ) {
 		if ( this._dispatchersGroups.has( options.name ) ) {
@@ -150,7 +151,7 @@ export default class Conversion {
 	 *		conversion.for( 'downcast' ).add( conversion.customConverter( 'insert:paragraph', myConverter ) );
 	 *		conversion.for( 'downcast' ).add( conversion.customConverter( 'insert:paragraph', myConverter ) );
 	 *
 	 *
 	 * @param {String} groupName The name of dispatchers group to add the converters to.
 	 * @param {String} groupName The name of dispatchers group to add the converters to.
-	 * @returns {module:engine/conversion/downcast-converters~DowncastHelpers}
+	 * @returns {module:engine/conversion/conversion~ConversionHelpers|module:engine/conversion/downcast-converters~DowncastHelpers}
 	 * An object with the `.add()` method, providing a way to add converters.
 	 * An object with the `.add()` method, providing a way to add converters.
 	 */
 	 */
 	for( groupName ) {
 	for( groupName ) {