I tried to use the latest JS API, you added
[NEW] Experimental TypeScript declarations file included, to improve intellisense in IDEs like Visual Studio Code.
but there are such exceptions
[NEW] Experimental TypeScript declarations file included, to improve intellisense in IDEs like Visual Studio Code.
Code: Select all
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"dom",
"es2015"
],
"module": "es2015",
"moduleResolution": "node",
"sourceMap": true,
"target": "es5"
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules",
"src/**/*.spec.ts",
"src/**/__tests__/*.ts"
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}
Bax wrote:It is not clear if you are having issues using the API (connect to SFS, etc), or if it is just a matter of intellisense and code completion.
Code: Select all
import * as SFS2X from '../../smartfox/sfs2x-api-1.7.15';
Code: Select all
Uncaught TypeError: t.resolve is not a function
at Object.setNativePromise
Code: Select all
var sfs = new SFS2X.SmartFox();
Bax wrote:Could you send a very basic project example showing the TypeScript transpile errors?
Bax wrote:All reported errors should be fixed by the latest 1.7.17 version of the API.
Return to “SFS2X HTML5 / JavaScript API”
Users browsing this forum: Baidu [Spider] and 39 guests