Updated to angular 11
Now compiling with strict mode in typescript Need to error checking now
This commit is contained in:
@ -16,7 +16,7 @@ const serviceName = 'DiscountReportService';
|
||||
export class DiscountReportService {
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
|
||||
|
||||
get(startDate: string, finishDate): Observable<DiscountReport> {
|
||||
get(startDate: string | null, finishDate: string | null): Observable<DiscountReport> {
|
||||
const options = { params: new HttpParams() };
|
||||
if (startDate !== null) {
|
||||
options.params = options.params.set('s', startDate);
|
||||
@ -31,7 +31,7 @@ export class DiscountReportService {
|
||||
);
|
||||
}
|
||||
|
||||
print(startDate: string, finishDate): Observable<boolean> {
|
||||
print(startDate: string | null, finishDate: string | null): Observable<boolean> {
|
||||
const printUrl = `${url}/print`;
|
||||
const options = { params: new HttpParams() };
|
||||
if (startDate !== null) {
|
||||
|
||||
Reference in New Issue
Block a user