UNPKG

@drincs/pixi-vn

Version:

Pixi'VN is a npm package that provides various features for creating visual novels.

16 lines (13 loc) 539 B
import { StepLabelProps, StepLabelResult } from '@drincs/pixi-vn'; type StepLabelResultType = StepLabelResult | void; type StepLabelPropsType<T extends {} = {}> = StepLabelProps & T; /** * StepLabel is a function that will be executed as the game continues. */ type StepLabelType<T extends {} = {}> = (props: StepLabelPropsType<T>, info: { /** * The id of the label. */ labelId: string; }) => StepLabelResultType | Promise<StepLabelResultType>; export type { StepLabelPropsType, StepLabelResultType, StepLabelType };