mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-01 11:47:23 +09:00
* 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>
8 lines
228 B
TypeScript
8 lines
228 B
TypeScript
/// <reference types="node" />
|
|
import type { URL } from 'node:url';
|
|
import Summary from './summary.js';
|
|
export interface IPlugin {
|
|
test: (url: URL) => boolean;
|
|
summarize: (url: URL, lang?: string) => Promise<Summary>;
|
|
}
|