Encountered an issue in the JSON data within my typescript file.
I'm working on creating an Angular API that performs a git-search operation. Initially, I had the JSON data set up correctly but then I modified all data values to their respective data types such as changing 2323 to number and "https://www.google.com" to string. However, despite these changes, I keep getting the TS2314 error.
I corrected the double quotes to single quotes, but it was just a minor fix. I also utilized <>; when necessary.
export interface GitSearch {
'total_count': number;
'incomplete_results': boolean;
'items': Array<
{
// details of each item
}
>;
}
My expectation is for the above code snippet to be error-free.