MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / topicToTitle

Function topicToTitle

integrations/shopify/src/utils.ts:17–20  ·  view source on GitHub ↗
(topic: WebhookTopic)

Source from the content-addressed store, hash-verified

15};
16
17const topicToTitle = (topic: WebhookTopic) => {
18 const prettyTopic = titleCase(topic.replace("_", " ").replace("/", " "));
19 return `On ${prettyTopic}`;
20};
21
22export const eventSpec = <TEvent>({
23 topic,

Callers 1

eventSpecFunction · 0.85

Calls 2

titleCaseFunction · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…