@4players/odin-common
Version:
Commonly used type definitions and utility functions across ODIN web projects
17 lines (16 loc) • 407 B
TypeScript
import { type ZodType } from 'zod';
export type WebRtcUpdate = {
kind: 'Sdp';
type: 'Answer' | 'Offer';
sdp: string;
media_map: [number, string][];
} | {
kind: 'Trickle';
candidate: string;
spd_mid?: string;
spd_mline_index?: number;
username_fragment?: string | null;
} | {
kind: 'TrickleFinished';
};
export declare const WebRtcUpdateSchema: ZodType<WebRtcUpdate>;