@pagedip/lib-app
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -1,25 +0,2 @@ | ||
import { Observer } from "@pagedip/lib-observer"; | ||
declare namespace PagedipApp { | ||
export type AppPlugin = AppPluginFn | Array<AppPluginFn>; | ||
export type AppPluginFn = (this: App, app: App) => AppPlugin | void; | ||
export class App extends Observer { | ||
public static isApp(o: any): o is App; | ||
constructor(defaults?: any); | ||
public readonly configs: any[]; | ||
public static options: any; | ||
public use(fn: AppPlugin): this; | ||
public assert(prop: string, error?: Error | string | null): this; | ||
public config(name: string, options: any, after?: number | string): this; | ||
public defaults(options: any): this; | ||
public getConfigIndex(name: string): number; | ||
public getConfig(name: string): any; | ||
public reduceConfigs<T>(key: string, fn: (this: this, memo: T, item: any, name: string, index: number) => T, memo: T): T; | ||
public getOption(key: string, defaults?: any): this; | ||
public pickOptions(keys: string[]): this; | ||
public pickOptions(...keys: string[]): this; | ||
} | ||
} | ||
export = PagedipApp.App; | ||
import { App } from "./types"; | ||
export = App; |
{ | ||
"name": "@pagedip/lib-app", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"repository": { | ||
@@ -18,3 +18,3 @@ "type": "git", | ||
"@pagedip/lib-observer": "^2.0.1", | ||
"@pagedip/util-error": "^2.0.4", | ||
"@pagedip/util-error": "^2.0.5", | ||
"@pagedip/util-merge-plain-objects": "^2.0.0", | ||
@@ -31,5 +31,5 @@ "@pagedip/util-prop-helpers": "^1.1.1", | ||
"lib", | ||
"index.d.ts" | ||
"*.d.ts" | ||
], | ||
"gitHead": "625b8f014d3ff73ad4df0715f89a97a7d0cbe8cc" | ||
"gitHead": "20eb6627015f946cec6ee04f387c7cf4b17b417d" | ||
} |
5
18503
Updated@pagedip/util-error@^2.0.5