@types/fbdl-core
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/fbdl-core

Summary

This package contains type definitions for fbdl-core (https://github.com/Snowflake107/fbdl-core#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fbdl-core.

/// <reference types="node" />

import { Readable } from "stream";

declare namespace FBDL {
    interface Response {
        name: string;
        title: string;
        description: string;
        rawVideo: string;
        thumbnail: string;
        uploadedAt: Date;
        duration: string;
        interactionCount: number;
        streamURL: string;
        publishedAt: Date;
        width: number;
        height: number;
        nsfw: boolean;
        genre: string;
        keywords: any[];
        comments: number;
        size: string;
        quality: string;
        author: {
            type: string;
            name: string;
            url: string;
        };
        publisher: {
            type: string;
            name: string;
            url: string;
            avatar: string;
        };
        url: string;
        reactions: {
            total: number;
            like: number;
            love: number;
            care: number;
            wow: number;
            haha: number;
            sad: number;
            angry: number;
        };
        shares: string;
        views: string;
    }
}

declare const FBDL: {
    /**
     * Validates facebook url
     */
    validateURL: (url: string) => boolean;

    /**
     * Downloads facebook video
     */
    download: (url: string) => Promise<Readable>;

    /**
     * Fetches facebook video info
     */
    getInfo: (url: string) => Promise<FBDL.Response | null>;

    /**
     * Parses time in ms
     */
    parseTime: (duration: string) => string;
};

export = FBDL;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/fbdl-core

Weekly Downloads

11

Version

1.0.3

License

MIT

Unpacked Size

5.56 kB

Total Files

5

Last publish

Collaborators

  • types