Comparing version 0.28.0 to 0.28.1
@@ -302,4 +302,7 @@ // -- Usage definitions -- | ||
export declare function createApplication<A, O>(Class: { | ||
new (dash: AppDash<A>): A | ||
}): A | ||
export declare function createApplication<A, O>(Class: { | ||
new (dash: AppDash<A>, options: O): A | ||
}, options: O): A | ||
export declare function registerApplication<A>(obj: A): AppDash<A> |
{ | ||
"name": "bkb", | ||
"version": "0.28.0", | ||
"version": "0.28.1", | ||
"description": "An Unopinionated JavaScript Framework for Front-end Applications", | ||
@@ -5,0 +5,0 @@ "main": "bkb.min.js", |
import { AppBkb } from "./AppBkb" | ||
import { AppDash } from "./exported-definitions" | ||
export function createApplication<A, O>(Class: { new(dash: AppDash<A>, options: O): A }, options: O): A { | ||
export function createApplication<A, O>(Class: { new (dash: AppDash<A>): A }): A | ||
export function createApplication<A, O>(Class: { new (dash: AppDash<A>, options: O): A }, options: O): A | ||
export function createApplication(Class: { new(dash: AppDash, options?) }, options?) { | ||
let bkb = new AppBkb(Class, false, options) | ||
@@ -6,0 +8,0 @@ return bkb.root.getInstance() as any |
65091
1357