@types/youtube-captions-scraper
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Installation

npm install --save @types/youtube-captions-scraper

Summary

This package contains type definitions for youtube-captions-scraper (https://github.com/algolia/youtube-captions-scraper).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/youtube-captions-scraper.

export interface Subtitle {
    start: number;
    dur: number;
    text: string;
}

export type SubtitleOutput = Subtitle[];

export function getSubtitles({ videoID, lang }: {
    videoID: string;
    lang: string;
}): Promise<SubtitleOutput>;

Additional Details

  • Last updated: Tue, 29 Oct 2024 19:02:25 GMT
  • Dependencies: none

Credits

These definitions were written by oof2win2.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/youtube-captions-scraper

Weekly Downloads

418

Version

1.0.0

License

MIT

Unpacked Size

3.18 kB

Total Files

5

Last publish

Collaborators

  • types