@userscripters/stackexchange-api-types
Advanced tools
Comparing version 3.1.0 to 3.1.1
{ | ||
"name": "@userscripters/stackexchange-api-types", | ||
"description": "Stack Exchange API types generator", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Oleg Valter", |
@@ -9,3 +9,3 @@ | ||
| License | [GPL-3.0-or-later](https://spdx.org/licenses/GPL-3.0-or-later) | | ||
| Version | 3.1.0 | | ||
| Version | 3.1.1 | | ||
@@ -12,0 +12,0 @@ # Support |
import { expectAssignable, expectType } from "tsd"; | ||
import { Question } from "../lib/types"; | ||
import { CommonWrapperObject } from "../lib/wrapper"; | ||
import { Wrappers } from "../lib/wrapper"; | ||
declare function getQuestionFromAPI( | ||
id: number | ||
): Promise<CommonWrapperObject<Question>>; | ||
): Promise<Wrappers.CommonWrapperObject<Question>>; | ||
const response = await getQuestionFromAPI(42); | ||
expectAssignable<CommonWrapperObject>(response); | ||
expectAssignable<Wrappers.CommonWrapperObject>(response); | ||
@@ -12,0 +12,0 @@ const { backoff, items, has_more, quota_max, quota_remaining } = response; |
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
41302