The Tizen TypeScript API supports extending both the Samsung product API and the Tizen Web Device API to TypeScript language.
The Tizen TypeScript API converts the JavaScript APIs of both the Tizen Web Device API and the Samsung Product API into TypeScript APIs. The Tizen TypeScript API is released via npm. The CommonJS and TypeScript packages of each API are listed in the following table.
Table 1. Npm Packages of Each Tizen API
tizen-common-web
tizen-tv-webapis
Table 2. TypeScript Package List
recommend
We have released the create-tizen-app package, which is a wizard tool for helping to configure and make a Tizen web application. It is the best solution to create Tizen web applications easily if you are a developer who prefers CommonJS or TypeScript language. The package also supports using the Samsung TV Product API and the Tizen common API as CommonJS or TypeScript APIs.
create-tizen-app supports 4 options. Language (TypeScript/CommonJS), bundler (Webpack/Parcel), extension for editor (VSCode tizentv/Atom tizentv) and WITs.
The create-tizen-app package also save you a lot of time when setting up a development environment. Let's see how it works!
If you are familiar with TypeScript or want to build with TypeScript, then you need to install all the packages listed in table 1. Check out the sample of tizen-tv-webapis and the sample of tizen-common-web.
If you are familiar with CommonJS (node developer), then you just need to install the CommonJS packages. Check out the sample of tizen-common-web and the sample of tizen-tv-webapis for details.
Table 3. Supported TypeScript API of Tizen Web Device API
We support TypeScript APIs of the entire Samsung Product APIs. If you got any problems, please report your issue to our repository.
Table 4. Samsung TV Product APIs
If you are unfamiliar with TypeScript, learn more at What is TypeScript?.