s-ayers / binary-alchemist

Detected usage of the any type JS-0323
Anti-pattern
Critical
2 years ago2 years old
Unexpected any. Specify a different type
 2import { Location } from '@angular/common';
 3import { MenuService } from 'src/app/services/menu.service';
 4
 5declare const $: any; 6
 7@Component({
 8  selector: 'app-page',
Unexpected any. Specify a different type
33    return ret;
34  }
35
36  public getPrimary(): Observable<any[]> {37    return this.primary$;
38  }
39}
Unexpected any. Specify a different type
 7  styleUrls: ['./social-media.component.css']
 8})
 9export class SocialMediaComponent {
10  public sites: any = person['social media'];11}
Unexpected any. Specify a different type
10})
11export class MenuComponent implements OnInit {
12  url: string;
13  primary: any[];14
15  constructor(private router: Router, private location: Location, private menuService: MenuService) {
16    this.router.events.subscribe(event => {
Unexpected any. Specify a different type
 7  platformBrowserDynamicTesting
 8} from '@angular/platform-browser-dynamic/testing';
 9
10declare const require: any;11
12// First, initialize the Angular testing environment.
13getTestBed().initTestEnvironment(