@interopio/ng
Version:
IO Connect library for Angular - Browser and Desktop
22 lines (21 loc) • 1.05 kB
TypeScript
import { IOConnectBrowser, IOConnectBrowserFactoryFunction } from "@interopio/browser";
import { IOConnectDesktop } from "@interopio/desktop";
import { IOConnectBrowserPlatform, IOConnectBrowserPlatformFactoryFunction } from "@interopio/browser-platform";
export type IODesktopFactoryFunction = (config?: IOConnectDesktop.Config) => Promise<IOConnectDesktop.API>;
export type IOConnectNgFactoryConfig = IOConnectDesktop.Config | IOConnectBrowser.Config | IOConnectBrowserPlatform.Config;
export type IOConnectNgFactory = IOConnectBrowserFactoryFunction | IOConnectBrowserPlatformFactoryFunction | IODesktopFactoryFunction;
export interface IOConnectNgSettings {
holdInit?: boolean;
browser?: {
factory?: IOConnectBrowserFactoryFunction;
config?: IOConnectBrowser.Config;
};
browserPlatform?: {
factory?: IOConnectBrowserPlatformFactoryFunction;
config?: IOConnectBrowserPlatform.Config;
};
desktop?: {
factory?: IODesktopFactoryFunction;
config?: IOConnectDesktop.Config;
};
}