Home » Typescript

Tag Archives: Typescript

Wait For It…

Define Async/Await in JavaScript in One Sentence The async/await pattern allows non-blocking code to be written as though it’s blocking code. Rewind Languages without multi-threading may wish to run things in the background. One way to do that is via callbacks. The best example is the classic setTimeout callback in the browser: setTimeout(function(){ alert("Hello"); }, 3000); Here we offer a ...

Read More »

Typescript: What’s This!?

Here’s a little innocuous looking typescript: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 export default class MyClass {    public asStrings(      array: Array<SomeObject>,       // array to turn to string      objectReader: SomeObjectReader, // can extract a string from a SomeObject    ) : string[] {        const suffix = this.getSuffix();          return array.map(objectReader.readStringFromObject)            .map(str => str ...

Read More »

CUBA Platform: TypeScript SDK and REST API

java-interview-questions-answers

In this article, we will talk about the feature of the CUBA platform that exists for quite a long time, but is still not widely known – front-end SDK generator, and see how it works with CUBA’s REST API addon. Java+JavaScript – marriage born in web Only eight years ago we, Java developers, used JavaScript as a “second-class citizen” language ...

Read More »