Home > @lynx-js/rspeedy > defineConfig
The defineConfig method is a helper function used to get TypeScript intellisense.
Signature:
| Parameter | Type | Description |
|---|---|---|
| config | (params: ConfigParams) => Promise<Config> | The function that returns a promise that resolves to a config of Rspeedy. |
Returns:
(params: ConfigParams) => Promise<Config>
Use defineConfig in lynx.config.ts:
Use defineConfig with parameters in lynx.config.ts: