mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-21 01:21:17 +00:00
feat(tfl): export TflFeedItemType const (#47)
Replace hardcoded "tfl-alert" string with a TflFeedItemType const object, matching the pattern used by google-calendar and weatherkit packages. Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -15,6 +15,7 @@ import type {
|
||||
} from "./types.ts"
|
||||
|
||||
import { TflApi, lineId } from "./tfl-api.ts"
|
||||
import { TflFeedItemType } from "./types.ts"
|
||||
|
||||
const setLinesInput = lineId.array()
|
||||
|
||||
@@ -150,7 +151,7 @@ export class TflSource implements FeedSource<TflAlertFeedItem> {
|
||||
|
||||
return {
|
||||
id: `tfl-alert-${status.lineId}-${status.severity}`,
|
||||
type: "tfl-alert",
|
||||
type: TflFeedItemType.Alert,
|
||||
timestamp: context.time,
|
||||
data,
|
||||
signals,
|
||||
|
||||
Reference in New Issue
Block a user