chore: Remove semicolons (#1846)
* chore: Disable `semi` in Prettier * chore: Format w/o semi * Remove more `;` * Lint example * More ;
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
import type { CameraCaptureError } from './CameraError';
|
||||
import type { TemporaryFile } from './TemporaryFile';
|
||||
import type { CameraCaptureError } from './CameraError'
|
||||
import type { TemporaryFile } from './TemporaryFile'
|
||||
|
||||
export interface RecordVideoOptions {
|
||||
/**
|
||||
* Set the video flash mode. Natively, this just enables the torch while recording.
|
||||
*/
|
||||
flash?: 'on' | 'off' | 'auto';
|
||||
flash?: 'on' | 'off' | 'auto'
|
||||
/**
|
||||
* Specifies the output file type to record videos into.
|
||||
*/
|
||||
fileType?: 'mov' | 'mp4';
|
||||
fileType?: 'mov' | 'mp4'
|
||||
/**
|
||||
* Called when there was an unexpected runtime error while recording the video.
|
||||
*/
|
||||
onRecordingError: (error: CameraCaptureError) => void;
|
||||
onRecordingError: (error: CameraCaptureError) => void
|
||||
/**
|
||||
* Called when the recording has been successfully saved to file.
|
||||
*/
|
||||
onRecordingFinished: (video: VideoFile) => void;
|
||||
onRecordingFinished: (video: VideoFile) => void
|
||||
/**
|
||||
* The Video Codec to record in.
|
||||
* - `h264`: Widely supported, but might be less efficient, especially with larger sizes or framerates.
|
||||
* - `h265`: The HEVC (High-Efficient-Video-Codec) for higher efficient video recordings.
|
||||
*/
|
||||
videoCodec?: 'h264' | 'h265';
|
||||
videoCodec?: 'h264' | 'h265'
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,5 +35,5 @@ export interface VideoFile extends TemporaryFile {
|
||||
/**
|
||||
* Represents the duration of the video, in seconds.
|
||||
*/
|
||||
duration: number;
|
||||
duration: number
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user