npm install --save @types/fbdl-core
This package contains type definitions for fbdl-core (https://github.com/Snowflake107/fbdl-core#readme).
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;
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/node
These definitions were written by .