text: .
  npm i -D @types/googlemaps
  After installing the declaration files, the TypeScript compiler must be configured to use the types.
  Compiler Options in tsconfig.json (Recommended)
  It is recommended to use
  compilerOptions.types field in
  tsconfig.json at the
  root of the project. See the TypeScript
  documentation
  for more configuration options.
  { "compilerOptions": { "types": ["googlemaps"] } }
  Module Import
  An alternative is to use an empty import to inform the compiler about the types.
  import {} from 'googlemaps';
  An error similar to the following may be generated.
  @types/googlemaps/index.d.ts is not a module
  The solution is to create an
  index.d.ts at the project root declaring the
  googlemaps module.
  declare module 'googlemaps';
  Triple Slash directive
  Triple-slash directives are single-line comments containing a single XML tag. The contents of the comment are used as compiler directives.
  The following comment can be added to the TypeScript file to reference the Google Maps declarations.
  /// <reference types="googlemaps" />
  Alpha and Beta Features
  The community supported