Skip to content

Commit f89e3de

Browse files
author
deepshekhardas
committed
fix: add docstring to defineConfig for PR triggerdotdev#3533
Adds JSDoc to defineConfig function to improve docstring coverage.
1 parent 5d8e259 commit f89e3de

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/trigger-sdk/src/v3/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ export type {
88
ResolveEnvironmentVariablesResult,
99
} from "@trigger.dev/core/v3";
1010

11+
/**
12+
* Validates and normalizes trigger configuration.
13+
* Collapses maxComputeSeconds (new) and maxDuration (deprecated) into maxDuration.
14+
*/
1115
export function defineConfig(config: TriggerConfig): TriggerConfig {
1216
// `maxComputeSeconds` is the new name for `maxDuration`. If both are set, the new
1317
// name wins. Internally the SDK and platform still read `maxDuration`, so we

0 commit comments

Comments
 (0)