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

2.0.2 • Public • Published

Installation

npm install --save @types/baretest

Summary

This package contains type definitions for baretest (https://volument.com/baretest).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/baretest.

index.d.ts

export = baretest;

declare function baretest(headline: string): TesterFunctionObject;

type TesterFunctionObject = TesterFunction & TesterSubFunctions;

type TesterFunction = (name: string, fn: SyncOrAsyncVoidFunction) => void;
interface TesterSubFunctions {
    only: (name: string, fn: SyncOrAsyncVoidFunction) => void;
    skip: (name?: string, fn?: SyncOrAsyncVoidFunction) => void;
    before: (fn: SyncOrAsyncVoidFunction) => void;
    after: (fn: SyncOrAsyncVoidFunction) => void;
    run: () => Promise<boolean>;
}

type SyncOrAsyncVoidFunction = () => void | Promise<void>;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Rory O’Kane.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/baretest

Weekly Downloads

161

Version

2.0.2

License

MIT

Unpacked Size

3.69 kB

Total Files

5

Last publish

Collaborators

  • types