UNPKG

scrivito

Version:

Scrivito is a professional, yet easy to use SaaS Enterprise Content Management Service, built for digital agencies and medium to large businesses. It is completely maintenance-free, cost-effective, and has unprecedented performance and security.

19 lines (17 loc) 444 B
// experimental, no unit tests cover this module export interface SelectedObjMessage { type: 'ScrivitoSelectedObj'; objId: string | null; } export function isSelectedObjMessage( data: unknown, ): data is SelectedObjMessage { return ( !!data && typeof data === 'object' && 'type' in data && data.type === 'ScrivitoSelectedObj' && 'objId' in data && (data.objId === null || typeof data.objId === 'string') ); }