-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update TypeScript docs #292
Comments
I use TypeScript in Visual Studio Code. I do nothing but Or we can just publish phaser.comment.d.ts to It seems MS prefers use |
For the ionic template project I've just installed phaser-ce as additional dependency without using typings. Code completion within visual studio code worked out of the box. So when it works generally without I think that it worked out of the box was because of the behaviour of typescript compiler to scan I'll try to migrate a personal typescript game project currently using legacy phaser as dependency to phaser-ce without using |
If you use |
Upshot:
|
Having lots of pain getting types to show up in VSCode. I'm uncertain about {
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"lib": ["es2015","es6","es7"],
"sourceMap": true,
"baseUrl": ".",
"paths": {
"main/*" : ["src/main/*"],
"components/*" : ["src/renderer/components/*"],
"core/*" : ["src/renderer/core/*"],
"states/*" : ["src/renderer/states/*"],
"ui/*" : ["src/renderer/ui/*"],
"common/*" : ["src/common/*"],
"devtools_components/*" : ["src/devtools/components/*"],
"devtools_common/*" : ["src/devtools/common/*"]
}
},
"include": [
"./src/*",
"./node_modules/phaser-ce/typescript/pixi.comments.d.ts" ,
"./node_modules/phaser-ce/typescript/p2.d.ts",
"./node_modules/phaser-ce/typescript/phaser.comments.d.ts"
],
"exclude": [
"dist",
"app"
]
} |
types
to package.json (Typescript definitions is not working as it should #276). I don't know how that change affects a Phaser–TypeScript project.files
,include
).typings install
.Suggestions?
The text was updated successfully, but these errors were encountered: