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

---
```ts
$useDependency(
   context, 
   target, ...
   versionRecords): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | `DecoratorContext` |
| `target` | `EnumMember` \| `Namespace` |
| ...`versionRecords` | `EnumMember`[] |

## Returns

`void`
