summaly/built/summary.d.ts
Kagami Sascha Rosylight eab3766db9
feat: add oEmbed support (#6)
* feat: add oEmbed support

* more safelisted features

* fix the syntax

* Update README.md

* permissions

* names

* playerを使うように

* fix type error

* support width (for size ratio)

* test for type: video

* nullable width

* restore max height test

* ignored permissions

* restore autoplay

* Use WHATWG URL

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-03-14 02:46:41 +09:00

50 lines
953 B
TypeScript

declare type Summary = {
/**
* The description of that web page
*/
description: string | null;
/**
* The url of the icon of that web page
*/
icon: string | null;
/**
* The name of site of that web page
*/
sitename: string | null;
/**
* The url of the thumbnail of that web page
*/
thumbnail: string | null;
/**
* The player of that web page
*/
player: Player;
/**
* The title of that web page
*/
title: string | null;
/**
* Possibly sensitive
*/
sensitive?: boolean;
};
export default Summary;
export declare type Player = {
/**
* The url of the player
*/
url: string | null;
/**
* The width of the player
*/
width: number | null;
/**
* The height of the player
*/
height: number | null;
/**
* The allowed permissions of the iframe
*/
allow: string[];
};