---
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/d9932edc59f70da9fb67448d13de352345f4f8ff/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`
