Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should passes when used properly', () => {
getCurrentPositionAsync({
accuracy: Accuracy.High,
}).then(result => {
const { coords, timestamp } = result;
(timestamp: number);
(coords.latitude: number);
(coords.speed: number);
// $ExpectError: check any
(coords.speed: string);
});
});