Skip to content

Commit

Permalink
fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Nov 28, 2024
1 parent 569c4c3 commit 017012c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view/view/view.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace $ {

export type $mol_view_content = $mol_view|Node|string|number|boolean
export type $mol_view_content = $mol_view|Node|string|number|boolean|null

export function $mol_view_visible_width() {
return $mol_window.size().width
Expand Down Expand Up @@ -86,7 +86,7 @@ namespace $ {

/// Raw child views
sub() {
return [] as readonly ($mol_view|Node|string|number|boolean)[]
return [] as readonly $mol_view_content[]
}

/// Visible sub views with defined ambient context
Expand Down

0 comments on commit 017012c

Please sign in to comment.