# withResolvers

```ts
function withResolvers<T>(): WithResolvers<T>
```

Create an @Operation and two functions to resolve or reject
it, corresponding to the two parameters passed to the executor of
the [action](https://frontside.com/effection/api/v3/action.md) constructor. This is the Effection equivalent of
[Promise.withResolvers()]https:

### Type Parameters
T


### Return Type


[WithResolvers](https://frontside.com/effection/api/v3/WithResolvers.md)&lt;T&gt;


an operation and its resolvers.

[View code](https://github.com/thefrontside/effection/tree/effection-v3.6.1/lib/with-resolvers.ts#L47)
