-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi SPCK Editor team π,
First of all, thank you for creating SPCK Editor. It is a very useful web development tool on Android.
I would like to request a feature related to JavaScript IntelliSense / code completion.
Problem
Currently, SPCK Editor does not provide code completion from .d.ts (TypeScript declaration) files for JavaScript projects.
For example, when developing a Phaser.js game:
- I use plain HTML + JavaScript (no TypeScript runtime)
- I have a
phaser.d.tsfile containing full Phaser API typings - In VS Code, JavaScript IntelliSense works perfectly thanks to the TypeScript Language Service
- In SPCK Editor, Phaser APIs (e.g.
this.add.sprite,this.input.keyboard) are not suggested at all
This makes it very hard to work with large JS libraries on mobile.
Expected behavior
Support loading .d.ts files to provide:
- JavaScript IntelliSense
- API auto-completion
- Method / property hints
Similar to how VS Code handles JavaScript projects using:
jsconfig.json, or/// <reference path="..." />directives
Why this matters
Many JavaScript libraries (Phaser, Three.js, Babylon.js, PixiJS, etc.) provide official .d.ts files.
Even when writing plain JavaScript, developers rely heavily on these typings for:
- Productivity
- Learning APIs
- Avoiding mistakes
Adding .d.ts support would greatly improve SPCK Editor for:
- Game development
- Large JavaScript frameworks
- Professional workflows on Android
Reference
VS Code JavaScript IntelliSense is powered by the TypeScript Language Server, which reads .d.ts files even for .js code.
Summary
- No TypeScript runtime needed
- Only editor-level support for
.d.ts - Huge improvement for JavaScript developers on mobile
Thank you for considering this feature!