# uip rpa-legacy type-definition

> `uip rpa-legacy type-definition` inspects any .NET type from a project's dependencies — enum values, properties, methods, constructors, and base types. Useful when an activity returned by [`find-activities`](./uip-rpa-legacy-find-activities.md) takes an argument whose type you need to construct or interpret.

`uip rpa-legacy type-definition` inspects any .NET type from a project's dependencies — enum values, properties, methods, constructors, and base types. Useful when an activity returned by [`find-activities`](./uip-rpa-legacy-find-activities.md) takes an argument whose type you need to construct or interpret.

Windows-only — see the [overview](./uip-rpa-legacy.md) warning.

## Synopsis

```
uip rpa-legacy type-definition <project-path> --type <name> [options]
```

- `<project-path>` *(required)* — Path to `project.json` or the folder containing it.

## Options

| Flag | Description |
|---|---|
| `--type <name>` | Full or simple name of the type to inspect. |
| `--timeout <seconds>` | Timeout in seconds for the operation. |

## Examples

```bash
# Inspect a .NET enum used by a project
uip rpa-legacy type-definition ./MyProject/project.json --type System.DayOfWeek

# Inspect a UiPath activity argument type by full name
uip rpa-legacy type-definition ./MyProject \
    --type UiPath.Core.Activities.ClickActivity

# Inspect a type by simple name with a longer timeout
uip rpa-legacy type-definition ./MyProject --type Selector --timeout 120
```

## Related

- [`uip rpa-legacy find-activities`](./uip-rpa-legacy-find-activities.md) — discover activities; their argument types feed into `type-definition`.
- [`uip rpa-legacy find-package`](./uip-rpa-legacy-find-package.md) — find packages that contribute the types you want to inspect.
- [`uip rpa-legacy`](./uip-rpa-legacy.md) — tool overview.

## See also

- [Global options](./global-options.md)
- [Exit codes](./exit-codes.md)
