---
url: /reference/api/TypeAlias.TsdownPluginOption.md
---
# Type Alias: TsdownPluginOption\<A>

```ts
type TsdownPluginOption<A> = Awaitable<
  | TsdownPlugin<A>
  | RolldownPlugin<A>
  | {
      name: string
    }
  | undefined
  | null
  | void
  | false
  | TsdownPluginOption<A>[]
>
```

Defined in: [src/features/plugin.ts:61](https://github.com/rolldown/tsdown/blob/eb40c95efdf7f98d0aa7b0178a3b7322986bd419/src/features/plugin.ts#L61)

A tsdown plugin slot — accepts tsdown plugins, any Rolldown plugin form,
`null`/`undefined`/`false`, Promise | promises, and
nested arrays. Mirrors Rolldown's `RolldownPluginOption` but with
[`TsdownPlugin`](Interface.TsdownPlugin.md) as the atom so that tsdown-specific hooks are
type-checked.

## Type Parameters

### A

`A` = `any`
