aframe-typescript
v0.9.1
Published
[![npm version](https://img.shields.io/npm/v/aframe-typescript.svg?style=flat-square)](https://www.npmjs.com/package/aframe-typescript) [![npm version](https://img.shields.io/npm/l/aframe-typescript.svg?style=flat-square)](https://www.npmjs.com/package/af
Downloads
2
Readme
A-Frame TypeScript
This project contains helpers to make shaping the types of A-Frame components, systems
in TypeScript projects easier when using aframe-types
typings.
The helpers are exported as a set of functions that can be chained to further tweak the exact types of Components and Systems even in trickier situations. The helpers themselves are mostly identity functions with no behaviour. It should hardly increase your bundle size.
Note: These helpers should only be used when creating applications or libraries with aframe-typescript. In case you're working on typings for existing aframe projects, you won't need the helpers.
Testing
This project contains a handful of test cases to both test the helpers and aframe-types itself. Since there is no behaviour to test, just typings the current procedure relies on executing tsc
in the test folder.
cd typescript-helpers/tests/
npx tsc
It's expected that this will show errors. Important is that the summary only shows errors in the failure cases located under tests/failures
.
Note: the tests are setup to work with the aframe-types version in the same mono-repo, so not the version from the
package.json
used to build the typescript-helpers against.