Comparing version 1.3.0 to 1.3.1
@@ -15,3 +15,3 @@ import { AbortSignal } from 'abort-controller'; | ||
}; | ||
export declare type Payload<M extends Methods<R>, R extends RawApi> = R[M] extends (...args: [Record<string, unknown>, ...unknown[]]) => unknown ? Parameters<R[M]>[0] extends undefined ? {} : NonNullable<Parameters<R[M]>[0]> : {}; | ||
export declare type Payload<M extends Methods<R>, R extends RawApi> = M extends unknown ? R[M] extends (signal?: AbortSignal) => unknown ? {} : R[M] extends (args: any, signal?: AbortSignal) => unknown ? Parameters<R[M]>[0] : never : never; | ||
/** | ||
@@ -18,0 +18,0 @@ * Small utility interface that abstracts from webhook reply calls of different |
@@ -81,3 +81,3 @@ "use strict"; | ||
const expanded = targets.map(s => [l1, s, l3]); | ||
// assume that bare L1 expansions are always correct | ||
// assume that bare L2 expansions are always correct | ||
if (l3 === undefined) | ||
@@ -84,0 +84,0 @@ return expanded; |
{ | ||
"name": "grammy", | ||
"description": "grammY core package ported to Node.js", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "KnorpelSenf", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
454710