# ConsumerFunction

typedef

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/downcasthelpers.ts#L3167)

#### Parameters

* `element: ModelElement`

  The model element to be converted to the view structure.

* `consumable: ModelConsumable`

  The `ModelConsumable` same as in [`DowncastConversionApi.consumable`](module_engine_conversion_downcastdispatcher-DowncastConversionApi.md#member-consumable).

* `options?: object`

  Properties

  * `options.preflight?: boolean`

    Whether should consume or just check if can be consumed.

#### Returns

* `boolean | null`

  `true` if all consumable values were available and were consumed, `false` otherwise.

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
