@gramio/types
Advanced tools
Comparing version 7.0.12 to 7.0.13
/** | ||
* Based on Bot Api v7.0.0 (29.12.2023) | ||
* Generated at 2/6/2024, 10:47:36 AM using {@link https://github.com/gramiojs/types | [types]} and {@link https://ark0f.github.io/tg-bot-api | [schema]} generators | ||
* Generated at 2/6/2024, 10:05:53 PM using {@link https://github.com/gramiojs/types | [types]} and {@link https://ark0f.github.io/tg-bot-api | [schema]} generators | ||
*/ | ||
@@ -5,0 +5,0 @@ import * as Params from "./params" |
{ | ||
"name": "@gramio/types", | ||
"version": "7.0.12", | ||
"version": "7.0.13", | ||
"homepage": "https://github.com/gramiojs/types", | ||
@@ -5,0 +5,0 @@ "readme": "https://github.com/gramiojs/types", |
@@ -38,4 +38,4 @@ # Code-generated and Auto-published Telegram Bot API types | ||
get: | ||
(_target, method: string) => | ||
async (params: Record<string, unknown>) => { | ||
<T extends keyof ApiMethods>(_target: ApiMethods, method: T) => | ||
(params: Parameters<ApiMethods[T]>[0]) => { | ||
const response = await fetch(`${TBA_BASE_URL}${TOKEN}/${method}`, { | ||
@@ -42,0 +42,0 @@ method: "POST", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
386655