mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-21 08:33:26 +08:00
takePictureAsync should take a optional param (#26065)
`options: PictureOptions` is not mandatory.
This commit is contained in:
2
types/expo/index.d.ts
vendored
2
types/expo/index.d.ts
vendored
@@ -761,7 +761,7 @@ export interface RecordingOptions {
|
||||
}
|
||||
|
||||
export class CameraObject {
|
||||
takePictureAsync(options: PictureOptions): Promise<PictureResponse>;
|
||||
takePictureAsync(options?: PictureOptions): Promise<PictureResponse>;
|
||||
recordAsync(options: RecordingOptions): Promise<{ uri: string; }>;
|
||||
stopRecording(): void;
|
||||
getSupportedRatiosAsync(): Promise<string[]>; // Android only
|
||||
|
||||
Reference in New Issue
Block a user