This commit is contained in:
Dan Percic 2021-11-22 10:13:18 +02:00
parent 3ddedbbcf3
commit 5d6e3053fe
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,8 @@
import { ChangeDetectionStrategy, Component, forwardRef, Inject, Input, OnInit } from '@angular/core';
import { IListable, ListingComponent, ListingService } from '@iqser/common-ui';
import { Observable } from 'rxjs';
import { ListingComponent } from '../..';
import { IListable } from '../../models';
import { ListingService } from '../../services';
@Component({
selector: 'iqser-table-item',

View File

@ -1,5 +1,6 @@
import { tap } from 'rxjs/operators';
import { ITrackable } from '../listing/models/trackable';
import { MonoTypeOperatorFunction } from 'rxjs';
export function capitalize(value: string): string {
if (!value) {
@ -17,7 +18,7 @@ export function humanize(value: string, lowercase = true): string {
return words.map(capitalize).join(' ');
}
export function log<T>() {
export function log<T>(): MonoTypeOperatorFunction<T> {
return tap<T>(res => console.log(res));
}