> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-typedoc-upgrade.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# op

> TypeScript SDK reference

## Call Signature

> **op**\<`T`>(`fn`, `options?`): [`Op`](../type-aliases/op)\<`T`>

Defined in: [src/op.ts:380](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/op.ts#L380)

### Type Parameters

#### T

`T` *extends* (...`args`) => `any`

### Parameters

#### fn

`T`

#### options?

`OpOptions`\<`T`>

### Returns

[`Op`](../type-aliases/op)\<`T`>

## Call Signature

> **op**\<`T`>(`thisArg`, `fn`, `options?`): [`Op`](../type-aliases/op)\<`T`>

Defined in: [src/op.ts:385](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/op.ts#L385)

### Type Parameters

#### T

`T` *extends* (...`args`) => `any`

### Parameters

#### thisArg

`any`

#### fn

`T`

#### options?

`OpOptions`\<`T`>

### Returns

[`Op`](../type-aliases/op)\<`T`>

## Call Signature

> **op**(`target`, `propertyKey`, `descriptor`): `TypedPropertyDescriptor`\<`any`>

Defined in: [src/op.ts:391](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/op.ts#L391)

### Parameters

#### target

`object`

#### propertyKey

`string` | `symbol`

#### descriptor

`TypedPropertyDescriptor`\<`any`>

### Returns

`TypedPropertyDescriptor`\<`any`>

## Call Signature

> **op**\<`T`>(`value`, `context`): [`Op`](../type-aliases/op)\<`T`>

Defined in: [src/op.ts:397](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/op.ts#L397)

### Type Parameters

#### T

`T` *extends* (...`args`) => `any`

### Parameters

#### value

`T`

#### context

`MethodDecoratorContext`

### Returns

[`Op`](../type-aliases/op)\<`T`>

## Call Signature

> **op**(`options`): `MethodDecorator`

Defined in: [src/op.ts:402](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/op.ts#L402)

### Parameters

#### options

`Partial`\<`OpOptions`\<`any`>>

### Returns

`MethodDecorator`
