You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
in the ng-grid.d.ts file I needed to do a change in the export interface IGridOptions:
I had to change from columnDefs?: IColumnDef[] to columnDefs?: any, otherwise I cannot write $scope.gridOptions.columnDefs = "colDefs", assigning to the columndef property another variable in the scope.
Looks me this notation is very used to assign dinamically the column definitions.
Hi thread, we're moving DefinitelyTyped to use GitHub Discussions for conversations the @types modules in DefinitelyTyped.
To help with the transition, we're closing all issues which haven't had activity in the last 6 months, which includes this issue. If you think closing this issue is a mistake, please pop into the TypeScript Community Discord and mention the issue in the definitely-typed channel.
Activity
vvakame commentedon Oct 6, 2014
@lucamorelli I can't found your usecase in http://ui-grid.info/docs/#/api/ui.grid.class:GridOptions.columnDef
Do you have any information?
lucamorelli commentedon Oct 6, 2014
you can look at
https://github.com/angular-ui/ng-grid/wiki/Defining-columns
this is a Running sample
$scope.colDefs = [];
...
Looks like this is a general problem known to the TypeScript team
microsoft/TypeScript#805
microsoft/TypeScript#824
they're actually working with union types
lucamorelli commentedon Oct 6, 2014
btw: are we talking ng-grid or ui-grid? Any plans to support ui-grid too?
vvakame commentedon Oct 8, 2014
@lucamorelli Had been misunderstood. I'm sorry.
It supported if someone crelle pull request. thanks! 😉
orta commentedon Jun 7, 2021
Hi thread, we're moving DefinitelyTyped to use GitHub Discussions for conversations the
@typesmodules in DefinitelyTyped.To help with the transition, we're closing all issues which haven't had activity in the last 6 months, which includes this issue. If you think closing this issue is a mistake, please pop into the TypeScript Community Discord and mention the issue in the
definitely-typedchannel.