# Method

**Kind**: interface | **Module**: [Interop](https://docs.interop.io/desktop/reference/javascript/interop/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/interop/method/index.html

An interop method

## Properties

- **`accepts`** (`string`, optional)
  Signature describing the parameters that the method expects.
- **`description`** (`string`, optional)
  Description of what the method does. Useful for documentation purposes and for UI clients.
- **`displayName`** (`string`, optional)
  The actual name of the method, used in UI applications.
- **`flags`** (`{ [key: string]: any }`, required)
  Optional flags attached to the method
- **`name`** (`string`, required)
  The name of the method. Must be unique.
- **`objectTypes`** (`string[]`, required)
  The entities this method is meant to work with.
- **`returns`** (`string`, optional)
  Signature describing the properties of the object the method returns.
- **`supportsStreaming`** (`boolean`, required)
  If `true`, the method is a stream.
- **`version`** (`number`, optional)
  Method version.

## Methods

### getServers

Returns all servers that provide the method.

```ts
() => Instance[]
```

**Returns**: `Instance[]`

## Related types

- [Instance](https://docs.interop.io/desktop/reference/javascript/interop/instance/index.md)
