Skip to content

Commit 445a828

Browse files
committed
- Class<Component> instead of Component since mithril instances components
1 parent e90785e commit 445a828

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ithril/M.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ typedef RouteResolver<T:Component> = {
2323

2424
#if !nodejs @:native("m") extern #end
2525
class M {
26-
public static function mount(element:Element, component:Null<Component>):Void #if nodejs {} #end;
27-
public static function route(rootElement:Element, defaultRoute:String, routes:Dynamic<Either<Component, RouteResolver<Dynamic>>>):Void #if nodejs {} #end;
26+
public static function mount(element:Element, component:Class<Component>):Void #if nodejs {} #end;
27+
public static function route(rootElement:Element, defaultRoute:String, routes:Dynamic<Either<Class<Component>, RouteResolver<Dynamic>>>):Void #if nodejs {} #end;
2828
public static function parseQueryString(querystring:String):DynamicAccess<String> #if nodejs { return null; } #end;
2929
public static function buildQueryString(data:{}):String #if nodejs { return null; } #end;
3030
public static function withAttr<T, T2:Event>(attrName:String, callback:T->Void):T2->Void #if nodejs { return null; } #end;

0 commit comments

Comments
 (0)