Merge pull request #1579 from anyon-tech/master

Fixed typing
This commit is contained in:
João Guilherme Fidelis 2018-05-29 10:25:58 -03:00 committed by GitHub
commit 2b9bc306b8
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