2 Commits

Author SHA1 Message Date
Matthew Raymer
daf1809165 fix(typescript): Remove problematic JSDoc example causing parse error
Removed JSDoc example from saveContentCache that was causing
TypeScript parser to fail with 'Unterminated template literal' error.

The example code block was being parsed as actual code instead of
JSDoc comment, causing parse errors.

Verification:
- TypeScript compiles 
- Build passes 
2025-12-23 07:31:17 +00:00
Matthew Raymer
65f4c77b49 fix(typescript): Fix template literal in JSDoc causing parse error
Changed template literal in getSchedulesWithStatus JSDoc example
from template literal syntax to string concatenation to avoid
TypeScript parser confusion.

The template literal inside JSDoc code block was being parsed as
actual code, causing 'Unterminated template literal' error.

Verification:
- TypeScript compiles 
- Build passes 
2025-12-23 07:30:21 +00:00

View File

@@ -592,7 +592,7 @@ export interface DailyNotificationPlugin {
* enabled: true * enabled: true
* }); * });
* result.schedules.forEach(schedule => { * result.schedules.forEach(schedule => {
* console.log(`${schedule.id}: ${schedule.isActuallyScheduled ? 'Scheduled' : 'Not scheduled'}`); * console.log(schedule.id + ': ' + (schedule.isActuallyScheduled ? 'Scheduled' : 'Not scheduled'));
* }); * });
* ``` * ```
*/ */
@@ -636,7 +636,7 @@ export interface DailyNotificationPlugin {
* const schedule = await DailyNotification.createSchedule({ * const schedule = await DailyNotification.createSchedule({
* id: 'daily-fetch', * id: 'daily-fetch',
* kind: 'fetch', * kind: 'fetch',
* cron: '0 */6 * * *', * cron: '0 0 */6 * *',
* enabled: true * enabled: true
* }); * });
* ``` * ```
@@ -739,16 +739,6 @@ export interface DailyNotificationPlugin {
* *
* @param content Content cache data * @param content Content cache data
* @returns Promise resolving to saved ContentCache object * @returns Promise resolving to saved ContentCache object
*
* @example
* ```typescript
* await DailyNotification.saveContentCache({
* id: 'cache_123',
* payload: JSON.stringify({ title: 'Hello', body: 'World' }),
* ttlSeconds: 3600,
* meta: 'fetched_from_api'
* });
* ```
*/ */
saveContentCache(content: CreateContentCacheInput): Promise<ContentCache>; saveContentCache(content: CreateContentCacheInput): Promise<ContentCache>;