Skip to content

Commit

Permalink
optimize exports to avoid warning and better chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Dec 24, 2018
1 parent 6ac0cac commit dce5680
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/internal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ export * from './scroll';
* @param node
* @internal
*/
export function clear(node: Node) {
export function clear<T extends Node>(node: T) {
while (node.lastChild) {
node.removeChild(node.lastChild);
}
return node;
}
4 changes: 2 additions & 2 deletions src/mixin/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export {EScrollResult, IMixin, IMixinAdapter, IMixinClass} from './IMixin';
export * from './IMixin';
export {default as PrefetchMixin} from './PrefetchMixin';

export * from './PrefetchMixin';
3 changes: 2 additions & 1 deletion src/style/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export {default as GridStyleManager, IColumn, setTemplate, tableCSSClasses, tableIds} from './GridStyleManager';
export {default as GridStyleManager} from './GridStyleManager';
export * from './GridStyleManager';
export {default as StyleManager} from './StyleManager';

9 changes: 5 additions & 4 deletions src/table/ACellTableSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import {CSS_CLASS_HIDDEN, CSS_CLASS_LOADING} from '../styles';
import ACellAdapter, {ICellAdapterRenderContext} from './internal/ACellAdapter';
import {ITableSection} from './MultiTableRowRenderer';

export {isLoadingCell} from '../ARowRenderer';
export declare type ICellRenderContext<T extends IColumn> = ICellAdapterRenderContext<T>;
export declare type ITableCellRenderContext<T extends IColumn> = ICellAdapterRenderContext<T>;

/**
* base class for a cell renderer as table section
Expand Down Expand Up @@ -164,9 +163,9 @@ export abstract class ACellTableSection<T extends IColumn> extends ARowRenderer

/**
* the current render context, upon change `recreate` the whole table
* @returns {ICellRenderContext}
* @returns {ITableCellRenderContext}
*/
protected abstract get context(): ICellRenderContext<T>;
protected abstract get context(): ITableCellRenderContext<T>;

/**
* create a new header node for the given column
Expand Down Expand Up @@ -250,3 +249,5 @@ export abstract class ACellTableSection<T extends IColumn> extends ARowRenderer
this.cell.updateRow(node, rowIndex);
}
}

export default ACellTableSection;
5 changes: 3 additions & 2 deletions src/table/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export {ACellTableSection, ICellRenderContext as ITableCellRenderContext} from './ACellTableSection';
export {default as MultiTableRowRenderer, IMultiTableRowRendererOptions, ISeparatorFactory, ITableFactory, ITableSection} from './MultiTableRowRenderer';
export * from './ACellTableSection';
export {default as MultiTableRowRenderer} from './MultiTableRowRenderer';
export * from './MultiTableRowRenderer';

0 comments on commit dce5680

Please sign in to comment.