@airgram/core
Advanced tools
Comparing version 2.3.0-next.12 to 2.3.0-next.14
{ | ||
"name": "@airgram/core", | ||
"version": "2.3.0-next.12", | ||
"version": "2.3.0-next.14", | ||
"private": false, | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "4a02fb02b83ae27d28f6ee82337f16359536cbff", | ||
"gitHead": "86116df943d40f17f3b5cdbaead57709ef1e2cf0", | ||
"sideEffects": false, | ||
@@ -14,0 +14,0 @@ "author": "Alexander Krisko", |
@@ -52,3 +52,3 @@ import * as api from './api'; | ||
} | ||
export interface ApiResponse<ParamsT, ResultT extends BaseTdObject> extends ContextState, ExtraContext { | ||
export interface ApiResponse<ParamsT, ResultT extends BaseTdObject> extends ContextState { | ||
_: Predicate<ResultT> | 'error'; | ||
@@ -76,3 +76,3 @@ request: ApiRequest<ParamsT>; | ||
} | ||
export interface UpdateContext<UpdateT extends BaseTdObject> extends ContextState, ExtraContext { | ||
export interface UpdateContext<UpdateT extends BaseTdObject> extends ContextState { | ||
_: Predicate<UpdateT>; | ||
@@ -82,6 +82,6 @@ update: UpdateT; | ||
} | ||
export declare type BaseContext = ApiResponse<unknown, TdObject> | UpdateContext<TdObject>; | ||
export interface ExtraContext { | ||
} | ||
export declare type Context<T = {}> = ApiResponse<unknown, TdObject> | (UpdateContext<TdObject> & T); | ||
export declare type BaseContext = Omit<Context, keyof ExtraContext>; | ||
export declare type Context<ContextT extends BaseContext = BaseContext> = ContextT & ExtraContext; | ||
export {}; |
817614