Meteor.wrapAsync please explain

You can try this to prevente using require:

In order to use the existing typings from I did the following in typescript:

import * as googleMaps from ‘@google/maps’;
import { } from ‘@types/googlemaps’;
This then allowed me to use the google.maps namespace along with making the createClient call.

googleMaps.createClient({
key: ‘…’,
}).geocode(…);

Be warned that this project and the typings project have discrepancies as well. For example the GeocoderRequest object from the typings project has a different object structure.

Anyway I have done my community work for one month I think. Is there a badge I get now from you? :slight_smile:

3 Likes

Thanks again. I’ll have to read up on some of the things you just mentioned but I really appreciate it. You’ve definitely done your community duties for a month! Is the a badge a joke or is there something I can press here to say thanks??

I’ve been watching this thread for hours, and it seems the problem hasn’t even solved yet. I don’t know how to help you with wrapAsync function. But maybe my repo here can help you as an example of handling geocode method


Hope it helps :blush: