---
lang: en
title: 'API docs: metadata.designtimemethodmetadata'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.metadata.designtimemethodmetadata.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [DesignTimeMethodMetadata](./metadata.designtimemethodmetadata.md)

## DesignTimeMethodMetadata interface

Design time metadata for a method.

<b>Signature:</b>

```typescript
export interface DesignTimeMethodMetadata 
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [parameterTypes](./metadata.designtimemethodmetadata.parametertypes.md) | <code>Function[]</code> | An array of parameter types |
|  [returnType](./metadata.designtimemethodmetadata.returntype.md) | <code>Function</code> | Return type |
|  [type](./metadata.designtimemethodmetadata.type.md) | <code>Function</code> | Type of the method itself. It is <code>Function</code> |

## Example


```ts
class MyController
{
  myMethod(x: string, y: number, z: MyClass): boolean {
    // ...
    return true;
  }
}

```
The `myMethod` above has design-time metadata as follows:

```ts
{
  type: Function,
  parameterTypes: [String, Number, MyClass],
  returnType: Boolean
}

```


