Skip to content

Support IntelliSense / Code Completion from .d.ts files for JavaScript projectsΒ #762

@PMi-Pro

Description

@PMi-Pro

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.ts file 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions