pencil.js
Version:
Nice modular interactive 2D drawing library.
26 lines (25 loc) • 658 B
TypeScript
export default Pencil;
export * from "./pencil";
export type Plugin = {
/**
* - Name of the plugin
*/
name: string;
/**
* - Function called at use
*/
install: Function;
};
import Pencil from "./pencil";
/**
* @typedef {Object} Plugin
* @prop {String} name - Name of the plugin
* @prop {Function} install - Function called at use
*/
/**
* Install a plugin in Pencil.js
* @param {Plugin} plugin - Plugin to install
* @param {Object} [options] - Option passed down to the plugin
* @return {Object} The Pencil.js package
*/
export function use({ name, install }: Plugin, options?: any): any;