title: Typescript ag-grid onGridReady params throws an error
body: <p>I am using ag-grid with typescript and React</p>
  <p>OnGridReady event params throws an error</p>
  <pre><code>import { AgGridEvent, ICellRendererParams, ModuleRegistry } from &quot;@ag-grid-community/core&quot;;
    const onGridReady = (params: AgGridEvent): void =&gt; {
      setGridApi(params.api);
      params.api.sizeColumnsToFit();
    };
  </code></pre>
  <p>When I build it throws an error</p>
  <pre><code>Type error: No overload matches this call.
    Overload 1 of 2, '(props: Readonly&lt;AgGridReactProps&gt;): AgGridReact', gave the following error.
      Type '(params: AgGridEvent) =&gt; void' is not assignable to type '(event: GridReadyEvent) =&gt; void'.
        Types of parameters 'params' and 'event' are incompatible.
          Type 'GridReadyEvent' is not assignable to type 'AgGridEvent'.
            Types of property 'api' are incompatible.
              Type 'import(&quot;/Users/subha/admin/admin_demo/node_modules/ag-grid-community/dist/lib/gridApi&quot;).GridApi' is not assignable to type 'import(&quot;/Users/subha/admin/admin_demo/node_modules/@ag-grid-community/core/dist/cjs/gridApi&quot;).GridApi'.
                Types have separate declarations of a private property 'immutableService'.
    Overload 2 of 2, '(props: AgGridReactProps, context?: any): AgGridReact', gave the following error.
      Type '(params: AgGridEvent) =&gt; void' is not assignable to type '(event: GridReadyEvent) =&gt; void'.
    104 |           suppressCellSelection={true}
    105 |           frameworkComponents={{ editRenderer }}
  &gt; 106 |           onGridReady={onGridReady}
        |           ^
    107 |         &gt;&lt;/AgGridReact&gt;
    108 |       &lt;/div&gt;
    109 |     &lt;/div&gt;
  info  - Creating an optimized production build .npm ERR! code ELIFECYCLE**
  </code></pre>