aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwabilin <[email protected]>2020-08-01 14:50:21 +0900
committerwabilin <[email protected]>2020-08-01 14:50:21 +0900
commitf8aa2021565b876cc0162d11f0aa596ec12fa309 (patch)
tree2c8f6b4034fe2d601a852481f5d4143e77d453eb /src
parentv0.2.3 (diff)
downloadholo-schedule-f8aa2021565b876cc0162d11f0aa596ec12fa309.tar.xz
holo-schedule-f8aa2021565b876cc0162d11f0aa596ec12fa309.zip
export types
Diffstat (limited to 'src')
-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