Comparing version 4.8.0-canary.4 to 4.8.0-canary.5
{ | ||
"name": "telegraf", | ||
"version": "4.8.0-canary.4", | ||
"version": "4.8.0-canary.5", | ||
"description": "Modern Telegram Bot Framework", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -11,3 +11,2 @@ /** @format */ | ||
export type NonemptyReadonlyArray<T> = readonly [T, ...T[]] | ||
export type DefinitelyDefined<T> = T extends infer S | undefined ? S : T | ||
export type Expand<T> = T extends object | ||
@@ -56,3 +55,3 @@ ? T extends infer O | ||
Omit<tg.CallbackQuery, 'data'> & { | ||
game_short_name: DefinitelyDefined<tg.CallbackQuery['game_short_name']> | ||
game_short_name: NonNullable<tg.CallbackQuery['game_short_name']> | ||
} | ||
@@ -59,0 +58,0 @@ > |
@@ -9,3 +9,2 @@ /** @format */ | ||
export declare type NonemptyReadonlyArray<T> = readonly [T, ...T[]]; | ||
export declare type DefinitelyDefined<T> = T extends infer S | undefined ? S : T; | ||
export declare type Expand<T> = T extends object ? T extends infer O ? { | ||
@@ -36,3 +35,3 @@ [K in keyof O]: O[K]; | ||
callback_query: Expand<Omit<tg.CallbackQuery, 'data'> & { | ||
game_short_name: DefinitelyDefined<tg.CallbackQuery['game_short_name']>; | ||
game_short_name: NonNullable<tg.CallbackQuery['game_short_name']>; | ||
}>; | ||
@@ -39,0 +38,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
448083
9574