Update code example languages

This commit is contained in:
Marc Rousavy
2021-03-09 12:02:10 +01:00
parent cd55596ebd
commit e8a4e9f6b5
4 changed files with 20 additions and 15 deletions

View File

@@ -20,7 +20,7 @@ const DefaultCameraDevices: CameraDevices = {
* @returns The best matching {@linkcode CameraDevice}.
* @throws {@linkcode CameraRuntimeError} if no device was found.
* @example
* ```jsx
* ```tsx
* const device = useCameraDevice()
* // ...
* return <Camera device={device} />
@@ -35,7 +35,7 @@ export function useCameraDevices(): CameraDevices;
* @returns A {@linkcode CameraDevice} for the requested device type.
* @throws {@linkcode CameraRuntimeError} if no device was found.
* @example
* ```jsx
* ```tsx
* const device = useCameraDevice('wide-angle-camera')
* // ...
* return <Camera device={device} />