---
jsApi: true
title: "[F] $docFromComment"

---
```ts
$docFromComment(
  context,
  target,
  text): void
```

to be used to set the `@doc` from doc comment.

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | [`DecoratorContext`](Interface.DecoratorContext.md) |
| `target` | [`Type`](Type.Type.md) |
| `text` | `string` |

## Returns

`void`
