# Type Alias: CustomActionFunction

```
type CustomActionFunction = (...args) => any | Promise<any>;
```

A generic action function type for custom actions. Supports both synchronous and asynchronous implementations with flexible parameters.

## Parameters[#](#parameters)

| Parameter | Type | Description |
| --- | --- | --- |
| …`args` | `any`\[\] | Variable number of arguments of any type |

## Returns[#](#returns)

`any` | `Promise`<`any`\>

Any value or a promise that resolves to any value

---



[Source](https:/img.ly/docs/cesdk/sveltekit/api/cesdk-js/type-aliases/createsceneoptions)