@types/jasmine-data-provider
TypeScript icon, indicating that this package has built-in type declarations

2.2.4 • Public • Published

Installation

npm install --save @types/jasmine-data-provider

Summary

This package contains type definitions for jasmine-data-provider (https://github.com/MortalFlesh/jasmine-data-provider).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jasmine-data-provider.

index.d.ts

declare function using<T extends any[]>(
    values: using.ValueType<T[]>,
    func: (...data: Array<using.ArrayFuncArgType<T>>) => void,
): void;
declare function using<T>(values: using.ValueType<T[]>, func: (data: T) => void): void;
declare function using<T>(
    values: using.ValueType<Record<string, T>>,
    func: (data: T, description: string) => void,
): void;

declare namespace using {
    type ValueType<T> = T | (() => T);
    type ArrayFuncArgType<T> = T extends Array<infer U> ? U : never;
}

export = using;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Tomek Łaziuk.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jasmine-data-provider

Weekly Downloads

2,260

Version

2.2.4

License

MIT

Unpacked Size

3.69 kB

Total Files

5

Last publish

Collaborators

  • types