Update index.d.ts

This commit is contained in:
Wasili Adamow 2018-05-23 12:54:32 +02:00 committed by GitHub
parent 60b9ef1b84
commit ebca432f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
types/index.d.ts vendored
View File

@ -34,7 +34,7 @@ type GoogleVisionBarcodeType = Readonly<{
// FaCC (Function as Child Components)
type Self<T> = { [P in keyof T]: P }
type CameraStatus = Readonly<Self<{ READY, PENDING_AUTHORIZATION, NOT_AUTHORIZED }>>;
type CameraStatus = Readonly<Self<{ READY: any, PENDING_AUTHORIZATION: any, NOT_AUTHORIZED: any }>>;
type FaCC = (params: {
camera: RNCamera,
status: keyof CameraStatus