aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/index.ts3
-rw-r--r--src/parseScheduleHtml.ts4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/index.ts b/src/index.ts
index c7a52f4..f0e7a5f 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,3 +1,4 @@
-import parseScheduleHtml from './parseScheduleHtml'
+import parseScheduleHtml, { LiveInfo, StreamerImageDict } from './parseScheduleHtml'
+export { LiveInfo, StreamerImageDict }
export default parseScheduleHtml
diff --git a/src/parseScheduleHtml.ts b/src/parseScheduleHtml.ts
index d4a44dc..522eaa5 100644
--- a/src/parseScheduleHtml.ts
+++ b/src/parseScheduleHtml.ts
@@ -69,7 +69,7 @@ function parseToLiveBlocks(html: string | Buffer): LiveBlock[] {
return lives
}
-type StreamerImageDict = Record<string, string>
+export type StreamerImageDict = Record<string, string>
type ImageStreamerDict = Record<string, string>
function nextStreamerImageDict(liveBlocks: LiveBlock[], oldDict: StreamerImageDict) {
@@ -90,7 +90,7 @@ function reverseDict(dict: StreamerImageDict): ImageStreamerDict {
return reversed
}
-interface LiveInfo {
+export interface LiveInfo {
time: Date
link: string
streamer: string