title: Angular 5 create and edit Google Spreadsheet
body: <p>I have an Angular 5 app with a simple Form to enter data and a list next to it to manipulate the entries.</p>
  
  <p>When the data is ready I have a button which should create a google spreadsheet locally and send it to google drive.</p>
  
  <p>I tried it with <a href="https://www.npmjs.com/package/google-apps-script" rel="nofollow noreferrer">google-apps-script</a> which has <a href="https://www.npmjs.com/package/@types/google-apps-script" rel="nofollow noreferrer">types</a> but when importing the types to a module or service I get:</p>
  
  <pre><code>ERROR in src/app/common.service.ts(3,27): error TS2306: File 'C:/Users/myuser/Documents/dev/apps/project-booking/node_modules/@types/google-apps-script/index.d.ts' is not a module.
  </code></pre>
  
  <p>I do the Import like this:</p>
  
  <pre><code>import {GoogleAppsScripts} from '@types/google-apps-script';
  </code></pre>
  
  <p>or like this:</p>
  
  <pre><code>import {SpreadsheetApp} from '@types/google-apps-script';
  </code></pre>
  
  <p>but in both cases I get the above error.<br>
  Is something wrong with my imports or is this library broken?</p>