mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-15 01:32:56 +08:00
Merge pull request #10848 from jcfranco/maquette/add-projector-detach
[maquette] Add Projector#detach.
This commit is contained in:
8
maquette/maquette.d.ts
vendored
8
maquette/maquette.d.ts
vendored
@@ -325,6 +325,14 @@ declare namespace maquette {
|
||||
* @param {function} renderMaquetteFunction - Function with zero arguments that returns a {@link VNode} tree.
|
||||
*/
|
||||
append(parentNode: Element, renderMaquetteFunction: () => VNode): void;
|
||||
/**
|
||||
* Stops running the `renderMaquetteFunction` to update the DOM. The `renderMaquetteFunction` must have been
|
||||
* registered using [[append]], [[merge]], [[insertBefore]] or [[replace]].
|
||||
*
|
||||
* @returns The [[Projection]] which was created using this `renderMaquetteFunction`.
|
||||
* The [[Projection]] contains a reference to the DOM Node that was rendered.
|
||||
*/
|
||||
detach(renderMaquetteFunction: () => VNode): Projection;
|
||||
/**
|
||||
* Scans the document for `<script>` tags with `type="text/hyperscript"`.
|
||||
* The content of these scripts are registered as `renderMaquette` functions.
|
||||
|
||||
Reference in New Issue
Block a user