export type Mode = 'master' | 'mirror' | 'replay' ; export type Source = { imgEle ? : HTMLImageElement ; imgSrc ? : string ; } ; export function isNil ( mayBeNil ) { return mayBeNil === null || mayBeNil === undefined ; }