Skip to content

Commit

Permalink
fix(angular): add definite assignment assertion to props (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-lakhdar authored Mar 16, 2021
1 parent 9b5b8a4 commit 85f5b95
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ import {EngineService} from '../engine.service';
styleUrls: ['./facet.component.scss'],
})
export class FacetComponent implements OnInit {
@Input() field: string;
@Input() title: string;
@Input()
field!: string;
@Input()
title!: string;

private headlessFacet: Facet;
private headlessFacet!: Facet;

constructor(private engineService: EngineService) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {EngineService} from '../engine.service';
styleUrls: ['./pager.component.scss'],
})
export class PagerComponent implements OnInit {
private headlessPager: Pager;
private headlessResultPerPage: ResultsPerPage;
private headlessPager!: Pager;
private headlessResultPerPage!: ResultsPerPage;

constructor(private engineService: EngineService) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {EngineService} from '../engine.service';
styleUrls: ['./query-summary.component.scss'],
})
export class QuerySummaryComponent implements OnInit {
private headlessQuerySummary: QuerySummary;
private headlessQuerySummary!: QuerySummary;

constructor(private engineService: EngineService) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {EngineService} from '../engine.service';
styleUrls: ['./result-list.component.scss'],
})
export class ResultListComponent implements OnInit {
private headlessResultList: ResultList;
private headlessResultList!: ResultList;

constructor(private engineService: EngineService) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import {EngineService} from '../engine.service';
styleUrls: ['./search-box.component.scss'],
})
export class SearchBoxComponent implements OnInit {
headlessSearchBox: SearchBox;
headlessSearchBox!: SearchBox;
myControl = new FormControl();
suggestions: {
highlightedValue: string;
rawValue: string;
}[];
}[] = [];

constructor(private engineService: EngineService) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import {EngineService} from '../engine.service';
styleUrls: ['./sort.component.scss'],
})
export class SortComponent implements OnInit {
private headlessSort: Sort;
sortCriterias: {caption: string; criterion: any}[];
private headlessSort!: Sort;
sortCriterias!: {caption: string; criterion: any}[];

constructor(private engineService: EngineService) {}

Expand Down

0 comments on commit 85f5b95

Please sign in to comment.