1.0.3 • Published 7 months ago
@types/fbdl-core v1.0.3
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.
index.d.ts
// Type definitions for fbdl-core 1.0
// Project: https://github.com/Snowflake107/fbdl-core#readme
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Wed, 09 Mar 2022 22:31:55 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by DefinitelyTyped.