Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [typescript]

Typescript is a language which is a super set of JavaScript

Filter by
Sorted by
Tagged with
13 votes
3 answers

Wrapping IndexDB with RxJs

I find IndexedDB cumbersome and want to wrap the functionality with rxjs observables. I've come up with an angular2 service that seems to fit the bill, but I'm wondering if I'm using the observables ...
Jason Goemaat's user avatar
9 votes
2 answers

JSON4 parser in Typescript

Context I may have accidentally gotten a little sidetracked during homeschooling, and wrote a JSON4 parser in Typescript during the down-time. This project started as an idea that I got while ...
Patrick Hollweck's user avatar
4 votes
1 answer

Handling combinations of optional parameters for an Angular filter pipe

This is a simple implementation of an ng2 filter pipe, which can currently take 2 optional facets: <string>status and ...
msanford's user avatar
  • 391
3 votes
0 answers

Blocking Promise-driven queues with ECMAScript's async/await and generators

I implemented an AsyncQueue, whose dequeue() operation returns a Promise. The ...
ComFreek's user avatar
  • 751
3 votes
0 answers

Tic Tac Toe game (Game logic, no UI)

I've implemented a simple class for managing a Tic-Tac-Toe game's logic and state in Typescript. This code is intended to be used by a larger program; it doesn't implement any aspects of a UI. I've ...
DylanSp's user avatar
  • 203
2 votes
1 answer

Created a todo list in TS

I am learning Typescript and created a straightforward to-do list project to practice some basic concepts. I am able to Edit the todo Delete the todo Mark the todo as completed I want to how can I ...
Mubashir Waheed's user avatar
2 votes
1 answer

Typescript: Recursion file-system lookup

Previously I asked a question to find the best practice of recursively running a function to retrieve all import/export statements of files in NodeJs here. After some discussion I'm not satisfied yet,...
PRAISER's user avatar
  • 151
2 votes
1 answer

Resource pooling in TypeScript

As an exercise, and in an effort to avoid wrapping callback APIs in every node library it seems, I threw together a resource pool class. The intended usage is the following: ...
calebboyd's user avatar
  • 121
1 vote
3 answers

Replace array values with product of all other values

Need help to optimize the following code for lower time complexity: ...
Soumya Charan Das's user avatar
0 votes
1 answer

Choosing between 2 Fibonacci alternatives [closed]

Task: Return the fibonacci value at a given index. e.g: input: 6, return: 8. Algorithm 1: ...
Elya Livshitz's user avatar
-1 votes
1 answer

How to avoid duplicate if-else statements within a Typescript switch?

030's user avatar
  • 113