Updated several files to make use of the pipe operator for better type declaration readability and clarity. This includes specifying types in functions parameters and class property declarations.