Developer / Reference / TypeScript APIs

TypeScript APIs

Last updated on 13-May-2020 by Jakob Jakobsen Boysen
Jakob Jakobsen Boysen

Platform Lead
boysen@scifeon.com

Importing

All Scifeon TypeScript classes are located in the namespaces scifeon-*. Further, many classes are prefixed with Scifeon, but can be accessed without the prefix. For example the statements below are equivalent:

The Scifeon TypeScript classes can be used in the Apps by importing them and injecting them:

The autoinject decorator automatically injects an instance of the logger into the constructor, and the logger can now be used throughout all methods in the class because it has been set on the object using the private modifier in the parameters list of the constructor.

TypeScript classes

In the class documentation, we use TypeScript types to indicate the parameter types and the return types.