Skip to content

Commit c9c9453

Browse files
committed
Fix: we don't know output type of deserializer
Be more explicit about the fact that we don't know the output of deserialized output
1 parent ff35b96 commit c9c9453

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/base/src/widget.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,9 @@ export class WidgetModel extends Backbone.Model {
655655
static _deserialize_state(
656656
state: Dict<BufferJSON>,
657657
manager: IWidgetManager
658-
): Promise<utils.Dict<BufferJSON>> {
658+
): Promise<utils.Dict<unknown>> {
659659
const serializers = this.serializers;
660-
let deserialized: Dict<PromiseLike<BufferJSON> | BufferJSON>;
660+
let deserialized: Dict<unknown>;
661661
if (serializers) {
662662
deserialized = {};
663663
for (const k in state) {

0 commit comments

Comments
 (0)