π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
import { type VoiceEnvelope, VoiceMessage, type VoiceTarget } from './voice-message';
export function isVoiceMessageFor(target: VoiceTarget, message: unknown): message is VoiceEnvelope {
if (typeof message !== 'object' || message === null) return false;
const candidate = message as Partial<VoiceEnvelope>;
return (
candidate.target === target && typeof candidate.type === 'string' && Object.hasOwn(VoiceMessage, candidate.type)
);
}