MCPcopy
hub / github.com/triggerdotdev/trigger.dev / set

Method set

apps/webapp/app/utils/searchParams.ts:36–47  ·  view source on GitHub ↗
(key: keyof TParams, value: TParams[keyof TParams])

Source from the content-addressed store, hash-verified

34 }
35
36 set(key: keyof TParams, value: TParams[keyof TParams]) {
37 //check it matches the schema
38 const newParams = { ...this.params, [key]: value };
39 const result = parseSearchParams(newParams, this.schema);
40
41 if (!result.success) {
42 return { success: false, error: result.error };
43 }
44
45 this.params = newParams;
46 return { success: true };
47 }
48}
49
50type SearchParamsResult<TParams extends ParamType> =

Callers 15

#onPodUpdatedMethod · 0.45
server.tsFile · 0.45
extendQueryParamsFunction · 0.45
onAllReadyFunction · 0.45
onShellReadyFunction · 0.45
useCursorPathFunction · 0.45
RunsFiltersFunction · 0.45
ScheduleFiltersFunction · 0.45
EventsFiltersFunction · 0.45
pageUrlFunction · 0.45
mergePropertiesFunction · 0.45
loaderFunction · 0.45

Calls 1

parseSearchParamsFunction · 0.85

Tested by

no test coverage detected