> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# op

> Référence du SDK TypeScript

<div id="op">
  # op
</div>

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

<div id="type-parameters">
  #### Paramètres de type
</div>

| Nom | Type                                   |
| :-- | :------------------------------------- |
| `T` | extends (...`args`: `any`\[]) => `any` |

<div id="parameters">
  #### Paramètres
</div>

| Nom        | Type              |
| :--------- | :---------------- |
| `fn`       | `T`               |
| `options?` | `OpOptions`\<`T`> |

<div id="returns">
  #### Renvoie
</div>

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

<div id="defined-in">
  #### Défini dans
</div>

[op.ts:381](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/op.ts#L381)

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

<div id="type-parameters">
  #### Paramètres de type
</div>

| Nom | Type                                   |
| :-- | :------------------------------------- |
| `T` | extends (...`args`: `any`\[]) => `any` |

<div id="parameters">
  #### Paramètres
</div>

| Nom        | Type              |
| :--------- | :---------------- |
| `thisArg`  | `any`             |
| `fn`       | `T`               |
| `options?` | `OpOptions`\<`T`> |

<div id="returns">
  #### Renvoie
</div>

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

<div id="defined-in">
  #### Défini dans
</div>

[op.ts:386](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/op.ts#L386)

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

<div id="parameters">
  #### Paramètres
</div>

| Nom           | Type                              |          |
| :------------ | :-------------------------------- | -------- |
| `target`      | `Object`                          |          |
| `propertyKey` | `string`                          | `symbol` |
| `descriptor`  | `TypedPropertyDescriptor`\<`any`> |          |

<div id="returns">
  #### Renvoie
</div>

`TypedPropertyDescriptor`\<`any`>

<div id="defined-in">
  #### Défini dans
</div>

[op.ts:392](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/op.ts#L392)

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

<div id="type-parameters">
  #### Paramètres de type
</div>

| Nom | Type                                   |
| :-- | :------------------------------------- |
| `T` | extends (...`args`: `any`\[]) => `any` |

<div id="parameters">
  #### Paramètres
</div>

| Nom       | Type                     |
| :-------- | :----------------------- |
| `value`   | `T`                      |
| `context` | `MethodDecoratorContext` |

<div id="returns">
  #### Renvoie
</div>

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

<div id="defined-in">
  #### Défini dans
</div>

[op.ts:398](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/op.ts#L398)

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

<div id="parameters">
  #### Paramètres
</div>

| Nom       | Type                            |
| :-------- | :------------------------------ |
| `options` | `Partial`\<`OpOptions`\<`any`>> |

<div id="returns">
  #### Renvoie
</div>

`MethodDecorator`

<div id="defined-in">
  #### Défini dans
</div>

[op.ts:403](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/op.ts#L403)

***
