@brainstack/core
Advanced tools
| export {}; |
| export type CoreOptions = { | ||
| stateOptions: any; | ||
| }; |
| /// <reference types="ws" /> | ||
| /// <reference types="node" /> | ||
| import { CoreOptions } from './abstraction'; | ||
| import { Logger } from '@brainstack/log'; | ||
| export declare const createCore: ({ stateOptions }: CoreOptions) => { | ||
| integrations: import("@brainstack/log").LoggerIntegration[]; | ||
| level: number; | ||
| changeLogLevel(level: number): void; | ||
| addIntegration(integration: import("@brainstack/log").LoggerIntegration): void; | ||
| removeIntegration(integration: import("@brainstack/log").LoggerIntegration): void; | ||
| log(...message: any[]): void; | ||
| info(...message: any[]): void; | ||
| warn(...message: any[]): void; | ||
| error(...message: any[]): void; | ||
| verbose(...message: any[]): void; | ||
| getState(selector?: ((state: any) => any) | undefined): any; | ||
| mutate(mutator: (currentState: any) => any): any; | ||
| } | { | ||
| integrations: import("@brainstack/log").LoggerIntegration[]; | ||
| level: number; | ||
| changeLogLevel(level: number): void; | ||
| addIntegration(integration: import("@brainstack/log").LoggerIntegration): void; | ||
| removeIntegration(integration: import("@brainstack/log").LoggerIntegration): void; | ||
| log(...message: any[]): void; | ||
| info(...message: any[]): void; | ||
| warn(...message: any[]): void; | ||
| error(...message: any[]): void; | ||
| verbose(...message: any[]): void; | ||
| getState(selector?: ((state: any) => any) | undefined): any; | ||
| mutate(mutator: (currentState: any) => any): any; | ||
| connect: (destination: import("@brainstack/bridge").SocketConfig) => import("ws").WebSocket; | ||
| close: () => void; | ||
| logger: Logger; | ||
| hub: import("@brainstack/hub").EventHub; | ||
| ws_client?: import("ws").WebSocket | undefined; | ||
| } | { | ||
| integrations: import("@brainstack/log").LoggerIntegration[]; | ||
| level: number; | ||
| changeLogLevel(level: number): void; | ||
| addIntegration(integration: import("@brainstack/log").LoggerIntegration): void; | ||
| removeIntegration(integration: import("@brainstack/log").LoggerIntegration): void; | ||
| log(...message: any[]): void; | ||
| info(...message: any[]): void; | ||
| warn(...message: any[]): void; | ||
| error(...message: any[]): void; | ||
| verbose(...message: any[]): void; | ||
| getState(selector?: ((state: any) => any) | undefined): any; | ||
| mutate(mutator: (currentState: any) => any): any; | ||
| listen: (config?: import("@brainstack/bridge").SocketConfig | undefined) => import("ws").Server<typeof import("ws"), typeof import("http").IncomingMessage> | undefined; | ||
| close: () => void; | ||
| logger: Logger; | ||
| hub: import("@brainstack/hub").EventHub; | ||
| ws_server: import("ws").Server<typeof import("ws"), typeof import("http").IncomingMessage> | undefined; | ||
| }; |
| export * from './abstraction'; | ||
| export * from './implementation'; |
+1
-1
| { | ||
| "name": "@brainstack/core", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "Your package description", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+7
-3
@@ -8,7 +8,8 @@ { | ||
| "moduleResolution": "node", | ||
| "declaration": true, | ||
| "declarationDir": "dist", | ||
| "strict": true, | ||
| "forceConsistentCasingInFileNames": true, | ||
| "outDir": "dist", | ||
| "declaration": true, | ||
| "declarationDir": "../typings/hub", | ||
| "skipLibCheck":true, | ||
| "paths": { | ||
@@ -22,3 +23,6 @@ "common/*": [ | ||
| "src" | ||
| ], | ||
| "exclude":[ | ||
| "node_modules" | ||
| ] | ||
| } | ||
| } |
10430
37.82%20
25%218
40.65%