-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Description
I've written ambient declarations for a-frame in order to provide type support for TypeScript. I created a ticket a few months ago (DefinitelyTyped/DefinitelyTyped#11696) to track interest and recently I've been asked to merge these typings in to a standard place for consumption.
It would be great to include TypeScript support w/ A-Frame. This doesn't require any code to be rewritten, just include a .d.ts file like this as part of the release and add some tests to exercise the typings against A-Frame.
Benefits include:
- IDE support via intellisense and better code completion for A-Frame and it's dependencies (e.g. Three.js) (this is great for new users)
- Eliminates common errors stemming from typos and misuse
- Including in A-Frame would keep typings current w/ releases
- Zero runtime const (ambient declarations are not part of executed code)
- Better support for Angular and TypeScript users
By including typings w/ A-Frame, TypeScript users will immediately have types available and it would have no effect on non-TypeScript users.
I'm happy to answer any questions. If there's enough interest I'll submit a PR.
superjose, benhalverson, YagoLopez, alexozer, HyroVitalyProtago and 7 moretednyberg, sandersdevelopment, grischaerbe and PatMyron
Metadata
Metadata
Assignees
Labels
No labels