Skip to content

Commit

Permalink
Update packages/base/src/widget.ts
Browse files Browse the repository at this point in the history
Co-Authored-By: Jason Grout <jasongrout@users.noreply.github.com>
  • Loading branch information
martinRenou and jasongrout authored Jan 10, 2020
1 parent 65346ed commit 378c679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/base/src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ class WidgetView extends NativeView<WidgetModel> {
/**
* Create and promise that resolves to a child view of a given model
*/
create_child_view<VT extends DOMWidgetView = DOMWidgetView>(child_model: WidgetModel, options?: any): Promise<VT>;
create_child_view<VT extends DOMWidgetView = DOMWidgetView>(child_model: DOMWidgetModel, options?: any): Promise<VT>;
create_child_view<VT extends WidgetView = WidgetView>(child_model: WidgetModel, options = {}): Promise<VT> {
options = { parent: this, ...options};
return this.model.widget_manager.create_view<VT>(child_model, options)
Expand Down

0 comments on commit 378c679

Please sign in to comment.