@wordpress/widget-dashboard
Version:
Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.
1 lines • 556 B
Source Map (JSON)
{"version":3,"file":"action-fulfillment.mjs","names":[],"sources":["../../src/utils/action-fulfillment.ts"],"sourcesContent":["import type {\n\tWidgetCallbackAction,\n\tWidgetRuntimeAction,\n} from '@wordpress/widget-primitives';\n\n/**\n * Whether a callback fulfills the action.\n *\n * @param {WidgetRuntimeAction} action The action to test.\n */\nexport function isCallbackAction(\n\taction: WidgetRuntimeAction\n): action is WidgetCallbackAction {\n\treturn 'callback' in action;\n}\n"],"mappings":";;;;;;AAUA,SAAgB,iBACf,QACiC;CACjC,OAAO,cAAc;AACtB"}