@types/qunit
Advanced tools
Comparing version 2.19.10 to 2.19.11
@@ -562,2 +562,43 @@ declare global { | ||
type TestFunctionCallback = (assert: Assert) => void | Promise<void>; | ||
type EachFunction = <T>( | ||
name: string, | ||
dataset: T[] | { [key: string]: T }, | ||
callback: (assert: Assert, data: T) => void, | ||
) => void; | ||
interface IfFunction { | ||
(name: string, condition: boolean, callback: TestFunctionCallback): void; | ||
each: <T>( | ||
name: string, | ||
condition: boolean, | ||
dataset: T[] | { [key: string]: T }, | ||
callback: (assert: Assert, data: T) => void, | ||
) => void; | ||
} | ||
interface OnlyFunction { | ||
(name: string, callback: TestFunctionCallback): void; | ||
each: EachFunction; | ||
} | ||
interface TodoFunction { | ||
(name: string, callback: TestFunctionCallback): void; | ||
each: EachFunction; | ||
} | ||
interface SkipFunction { | ||
(name: string, callback: TestFunctionCallback): void; | ||
each: EachFunction; | ||
} | ||
interface TestFunction { | ||
(name: string, callback: TestFunctionCallback): void; | ||
each: EachFunction; | ||
if: IfFunction; | ||
only: OnlyFunction; | ||
skip: SkipFunction; | ||
todo: TodoFunction; | ||
} | ||
type Test = AssertionTest | SkipTest | TodoTest; | ||
@@ -816,3 +857,3 @@ } | ||
*/ | ||
test(name: string, callback: (assert: Assert) => void | Promise<void>): void; | ||
test: QUnit.TestFunction; | ||
@@ -819,0 +860,0 @@ /** |
{ | ||
"name": "@types/qunit", | ||
"version": "2.19.10", | ||
"version": "2.19.11", | ||
"description": "TypeScript definitions for qunit", | ||
@@ -48,4 +48,5 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qunit", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "ff4c04eadec3ea37b56db9c223f19e406b78f99294de4ccbce4fc3bf3e6cf2f6", | ||
"typeScriptVersion": "4.6" | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "708d2b645c35479d354cb5709bdb0bc0bb3d1e6485a5f6f5b201b406596b74c1", | ||
"typeScriptVersion": "4.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 16 Jan 2024 17:36:15 GMT | ||
* Last updated: Tue, 22 Oct 2024 00:30:28 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ |
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
39959
848