soop.js
Version:
대한민국의 인터넷 방송 플랫폼 SOOP(숲)의 비공식 API 라이브러리
26 lines (25 loc) • 732 B
TypeScript
import Base, { ClientOptions } from "./base";
export interface StreamerInfo {
streamerId: string | null;
streamerName: string | null;
streamerThumbnail: string | null;
streamerFavorites: string | null;
streamerSubscribe: string | null;
streamerExplanation: string | null;
}
interface LiveInfo {
streamerInfo: StreamerInfo | null;
streamUrl: string;
streamTitle: string | null;
thumbnailUrl: string;
}
declare class Soop extends Base {
constructor(options?: ClientOptions);
readonly search: {
channel: (bj: string) => Promise<StreamerInfo | null>;
};
readonly live: {
info: (bj: string) => Promise<LiveInfo | undefined | unknown>;
};
}
export default Soop;