Difference between bracket notation property access and Pick utility in TypeScript
Advertisements I have an interface like below export type CameraProps = Omit<React.HTMLProps<HTMLVideoElement>, “ref”> & { audio?: boolean; audioConstraints?: MediaStreamConstraints[“audio”]; mirrored?: boolean; screenshotFormat?: “image/webp” | “image/png” | “image/jpeg”; //between 0 & 1 screenshotQuality?: number; videoConstraints?: MediaStreamConstraints[“video”]; fullScreenRecord?: boolean; screenshotDimensions?: ScreenshotDimensions; setImageSrc?: Dispatch<SetStateAction<string>>; overlay?: boolean; } when I use pick to pick one of this property like… Read More Difference between bracket notation property access and Pick utility in TypeScript