Skip to content

Commit a900c5b

Browse files
committed
Add some type annotations.
1 parent c55b3f1 commit a900c5b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

source/ActionSheet.mint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ global component Ui.ActionSheet {
305305
href : String,
306306
target : String,
307307
onClick : Function(Html.Event, Promise(Void)) = Promise.never1
308-
) {
308+
) : Html {
309309
let contents =
310310
<>
311311
if Html.isNotEmpty(iconBefore) {

source/NavItem.mint

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ component Ui.NavItem {
7272
}
7373

7474
/* Renders the contents of an item. */
75-
fun renderContents (iconBefore : Html, iconAfter : Html, label : String) {
75+
fun renderContents (
76+
iconBefore : Html,
77+
iconAfter : Html,
78+
label : String
79+
) : Html {
7680
<>
7781
if Html.isNotEmpty(iconBefore) {
7882
<Ui.Icon icon={iconBefore}/>

0 commit comments

Comments
 (0)