Commit Graph

16 Commits

Author SHA1 Message Date
Nathan Bierema
c1a48d7730 Remove types 2019-03-27 21:53:18 -04:00
Krzysztof Grzybek
5704e7c110 [aframe] component definition improvement 2019-01-08 09:35:40 +01:00
Leon Radley
c3798b953a [@types/aframe] Add AFRAME.utils.device
A-Frame has a utils.device package that has a bunch of device checks.

The source can be found here https://github.com/aframevr/aframe/blob/master/src/utils/device.js
2018-12-20 11:21:02 +01:00
Nathan Bierema
36aa210efd [three] Update object materials to match documentation (#29518)
* Update accepted material types to match documentation

* Fix aframe-io-tests

* Fix SpriteCanvasMaterial

* Fix MeshFaceMaterial

* Fix SpriteMaterial

* Use tabs?!?

* Allow arrays

* Spaces

* Fix build

* Try again
2018-10-15 09:53:09 -07:00
Paul
37b5c6a8e4 Better describe A-Frame using imports. Remove namespaces. (#28661)
This update removes the usage of namespaces in an effort to just be able to use A-Frame directly from an import.

These types are based on [this branch](576e4557b1/%40types) of work in my [a-frame experiements](https://github.com/devpaul/aframe-experiments) repo. Please take a look over there to see more complete usage and examples.
2018-09-10 14:48:06 -07:00
Trygve Wastvedt
229e28706e A-Frame additions (#25006)
* Add new PropertyTypes

* A-Frame: Expand registerComponent test.

* Add generics to properties, components, and systems.

* Add missing ShaderDefinition interface.

* Add missing event data.

* Add missing throttle and throttleTick functions.

* Update Typescript version

* Use classes for component, system, and geometry

* Add tests for class inheritance.

* Improve defaults, rename ComponentBase -> ComponentDefault

* Saw the sign - many simplifications, return to interfaces
Can't extend a class definition that doesn't exist at runtime, so we need to use interfaces?

* Remove unnecessary generics

* Simplified some references, added a couple tests.

* Moving undefined system from generic to property.

* Revert "Update Typescript version"

This reverts commit 43ef72cef75b0bcee2d04eddcaa0f594290ec46f.
2018-05-08 10:12:01 -07:00
Mohamed Hegazy
c9cdb41d11
Fixes in preparation of lib changes (#24019)
* Fixes in preparation of lib changes

See https://github.com/Microsoft/TSJS-lib-generator/pull/383

* Fix breakes

* revert changes to knuddels-userapps-api

* Fix compressedTexSubImage2D overload

* Fix event emitter methods

* Remove duplicate declaration

* Fix ScreenOrientation.type
2018-03-06 13:32:07 -08:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Roberto Ritger
b9eb2feb3d A-Frame register custom geometry fix 2017-11-15 16:14:22 -08:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Andy
ccdb9e03d1 Add tslint disables for no-unnecessary-generics (#19564) 2017-09-05 09:14:04 -07:00
Andy
d74806eb3d Add lint disables for no-unnecessary-generics (#19508) 2017-09-01 08:34:37 -07:00
Andy
a828ea02ac Normalize tsconfig.jsons (#19447) 2017-08-30 08:15:31 -07:00
Paul Shannon
485696c0db making requested changes 2017-06-15 21:13:34 -07:00
Paul Shannon
bafdeeaa05 Added A-Frame typings
clean-up aframe DT header

using files in tsconfig.json

removing name from package.json

removing version from package.json

removing scripts from package.json

removing types from package.json

Moved package.json to tests to support ease of use

Telling DT to ignore tests

removing unix standard blank line at end of UNUSED_FILES.txt

dtslint seems to want a commonjs module

module in compileroptions

module in compileroptions

cleaning up lint errors
2017-06-06 12:19:14 -07:00