@based/functions
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -5,6 +5,3 @@ import { Context, HttpSession } from './context'; | ||
import { Authorize } from './auth'; | ||
export type ObservableUpdateFunction<K = any> = { | ||
(data: K, checksum?: number, diff?: any, fromChecksum?: number, isDeflate?: boolean, rawData?: K, err?: any): void; | ||
__internalObs__?: true; | ||
}; | ||
export type ObservableUpdateFunction<K = any> = (data: K, checksum?: number, err?: any, cache?: Uint8Array, diff?: any, fromChecksum?: number, isDeflate?: boolean) => void; | ||
export type ObserveErrorListener = (err: any) => void; | ||
@@ -11,0 +8,0 @@ export type HttpHeaders = { |
{ | ||
"name": "@based/functions", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,17 +6,12 @@ import { Context, HttpSession } from './context' | ||
export type ObservableUpdateFunction<K = any> = { | ||
( | ||
data: K, | ||
checksum?: number, | ||
diff?: any, | ||
fromChecksum?: number, | ||
isDeflate?: boolean, | ||
rawData?: K, | ||
// todo fix there errors TODO: make extra package 'errors' for client and server | ||
err?: any | ||
): void | ||
__internalObs__?: true | ||
} | ||
export type ObservableUpdateFunction<K = any> = ( | ||
data: K, | ||
checksum?: number, | ||
err?: any, | ||
cache?: Uint8Array, | ||
diff?: any, | ||
fromChecksum?: number, | ||
isDeflate?: boolean | ||
) => void | ||
// TODO: use error package | ||
export type ObserveErrorListener = (err: any) => void | ||
@@ -23,0 +18,0 @@ |
83689
2109