@empoleon/spotlight
Version:
Command center components for react and Empoleon
1 lines • 680 B
Source Map (JSON)
{"version":3,"file":"is-actions-group.mjs","sources":["../src/is-actions-group.ts"],"sourcesContent":["import type { SpotlightActionData, SpotlightActionGroupData } from './Spotlight';\n\nexport function isActionsGroup(\n item: SpotlightActionData | SpotlightActionGroupData\n): item is SpotlightActionGroupData {\n const _item = item as SpotlightActionGroupData;\n return _item.group !== undefined && Array.isArray(_item.actions);\n}\n"],"names":["isActionsGroup","item","_item","group","Array","isArray","actions"],"mappings":"AAEO,SAASA,eACdC,IAAA,EACkC;EAClC,MAAMC,KAAA,GAAQD,IAAA;AACd,EAAA,OAAOC,MAAMC,KAAA,KAAU,MAAA,IAAaC,KAAA,CAAMC,OAAA,CAAQH,MAAMI,OAAO,CAAA;AACjE;;;;"}