narraleaf-react
Version:
A React visual novel player framework
24 lines (23 loc) • 495 B
TypeScript
import { Actionable } from "../action/actionable";
export type VideoConfig = {
src: string;
muted: boolean;
};
export declare class Video extends Actionable<VideoStateRaw> {
constructor(config: Partial<VideoConfig>);
/**
* @chainable
*/
show(): ChainedVideo;
/**
* @chainable
*/
hide(): ChainedVideo;
/**
* Play the video
*
* The action will be resolved when the video ends
* @chainable
*/
play(): ChainedVideo;
}