github / github/codeql

No type information for Angular(typescript) codebase

Đang mở
#4,930 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
JS question Stale
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

Hi,
I have worked on an angular codebase and created a codeQL database . I was able to get type informations(getType) for that codebase but now when I started querying another angular codebase I am not getting any type information for the whole codebase. Both the angular codebase are similar(developed using the same angular practices). Is there any explanation for why this codebase is not providing type information?

My Code snippet:
```ts
import { HttpClient } from '@angular/common/http';

import { Observable } from 'rxjs';

import * as uuid from 'uuid';

@Injectable({
providedIn: 'root'
})
export class ApiService {

constructor(
private readonly http: HttpClient
) { }

private _getCorrelationId = () => uuid.v4();

public get(url, options?): Observable {
return this.http.get(url, {
withCredentials: true,
headers: {
'Client-Correlation-Id': this._getCorrelationId(),
'Content-type': 'application/json;v=1',
'Accept': 'application/json;v=1'
},
...options
});
}
```

I want all the apiService.get calls being made for which i need the type information. The code snippet is present in both the angular codebases but getting the type information for one codebase but not the second one.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.