MCPcopy Create free account
hub / github.com/KartikLabhshetwar/lazycommit / timeout

Function timeout

src/utils/config.ts:88–99  ·  view source on GitHub ↗
(timeout?: string)

Source from the content-addressed store, hash-verified

86 return model;
87 },
88 timeout(timeout?: string) {
89 if (!timeout) {
90 return 10_000;
91 }
92
93 parseAssert('timeout', /^\d+$/.test(timeout), 'Must be an integer');
94
95 const parsed = Number(timeout);
96 parseAssert('timeout', parsed >= 500, 'Must be greater than 500ms');
97
98 return parsed;
99 },
100 'max-length'(maxLength?: string) {
101 if (!maxLength) {
102 return 50;

Callers

nothing calls this directly

Calls 1

parseAssertFunction · 0.85

Tested by

no test coverage detected