UNPKG

e2ed

Version:

E2E testing framework over Playwright

8 lines (7 loc) 394 B
import type { Clear, Get, GetWithDefaultValue, Set } from './types'; type UseContext = (<Type>() => [get: Get<Type>, set: Set<Type>, clear: Clear]) & (<Type>(defaultValue: Type) => [get: GetWithDefaultValue<Type>, set: Set<Type>, clear: Clear]); /** * Creates functions for `get`, `set` and `clear` some typed value in test context. */ export declare const useContext: UseContext; export {};