Skip to content

Commit 5e1baa7

Browse files
authored
fix(docs): Correct optional parameter syntax in caching code snippet (#411)
Updated the `getScheduledEvents` function definition in `epic-stack/docs/caching.md` to correctly denote the `timings` parameter as optional. - Changed `timings: Timings` to `timings?: Timings` to make it valid TypeScript code. This fix ensures developers referencing the caching documentation will not encounter issues related to this specific code snippet.
1 parent 783f4b0 commit 5e1baa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/caching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const eventSchema = z.object({
4444
export async function getScheduledEvents({
4545
timings,
4646
}: {
47-
timings: Timings
47+
timings?: Timings
4848
} = {}) {
4949
const scheduledEvents = await cachified({
5050
key: 'tito:scheduled-events',

0 commit comments

Comments
 (0)