**@tevm/viem-effect** ∙ [README](../../README.md) ∙ [API](../../API.md)

***

[API](../../API.md) > [wrapInEffect](../README.md) > wrapInEffect

# Function: wrapInEffect()

> **wrapInEffect**\<`TViemFunction`, `TErrorType`\>(`viemFunction`): [`WrappedInEffect`](../type-aliases/WrappedInEffect.md)\<`TViemFunction`, `TErrorType`\>

## Type parameters

▪ **TViemFunction** extends [`AnyFunction`](../../types/type-aliases/AnyFunction.md)

▪ **TErrorType** extends `Error`

## Parameters

▪ **viemFunction**: `TViemFunction`

## Source

[experimental/viem-effect/src/wrapInEffect.d.ts:24](https://github.com/evmts/tevm-monorepo/blob/main/experimental/viem-effect/src/wrapInEffect.d.ts#L24)

***
Generated using [typedoc-plugin-markdown](https://www.npmjs.com/package/typedoc-plugin-markdown) and [TypeDoc](https://typedoc.org/)
