There is a variable declared in a class:
public searchText: string;
With strict mode enabled in TypeScript, the following error occurs:
Property 'searchText' has no initializer and is not definitely assigned in the constructor
Adding ''
like this:
public searchText: string = "";
Resolves the issue, but it's puzzling why there needs to be a default empty string if it was already defined as such.