UNPKG

@caspingus/lt

Version:

A utility library of helpers and tools for working with Learnosity APIs.

17 lines (14 loc) 363 B
import * as app from './app'; /** * Everything relating to a widget being created/edited. * @module Authoring/Widgets */ /** * The `type` of widget currently being edited. Returns * `undefined` if not on the widget edit screen. * @since 2.4.0 * @returns {string | undefined} */ export function type() { return app.appInstance().getWidget()?.type; }