1.0.0 • Published 6 months ago
@tsconfig/qjsengine v1.0.0
A base TSConfig for working with QJSEngine.
Add the package to your "devDependencies"
:
npm install --save-dev @tsconfig/qjsengine
yarn add --dev @tsconfig/qjsengine
Add to your tsconfig.json
:
"extends": "@tsconfig/qjsengine/tsconfig.json"
The tsconfig.json
:
{
// https://doc.qt.io/qt-5/qjsengine.html
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
// Technically QTJSEngine supportes ES2016, however there are issues with
// arrow functions where in certain contexts "this" does not exist.
// Targeting ES5 instead fixes these issues by binding this to a variable
// and closing over that instead.
"target": "ES5",
"lib": ["ES2016"],
"module": "none",
"esModuleInterop": false,
"strict": true
}
}
You can find the code here.
1.0.0
6 months ago