VSCode + TS + JQuery
jquery установил через npm
Получаю ошибку при компиляции $.getJSON is not a function
import * as $ from 'jquery';
class Test {
name: string;
public static get(): void {
$.getJSON('countries.json', function(data) {
console.log('test');
});
}
}
tsconfig
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"sourceMap": true,
"allowSyntheticDefaultImports": true
}
}
package.json
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {},
"dependencies": {}
}
Основные этапы разработки сайта для стоматологической клиники
Продвижение своими сайтами как стратегия роста и независимости