mktoho

mktoho @mktoho12

About: Hello everyone. I am a programmer from Japan. I am not good at English, so I am posting the text translated by a computer.

Location:
Tokyo Japan
Joined:
Nov 15, 2017

mktoho
articles - 5 total

Simplifying Union Types and Arrays in TypeScript

In this article, I discuss a simple yet effective technique in TypeScript to avoid redundancy when defining union types and corresponding arrays. By using the as const assertion and typeof, you can consolidate the list of values in one place, making your code more maintainable and less error-prone.

Learn More 1 3Oct 12 '24

How to use authenticated proxy with Node's fetch

To use an authenticated proxy with fetch in node, you need to register an undici proxy agent as a global dispatcher.

Learn More 3 0Oct 15 '22

mapping javascript object values

A method that maps only the values of a javascript object, which is a set of key/value pairs, like...

Learn More 1 0Sep 14 '22

The project created by "yarn create next-app" does not recognize eslint

In the next project created with yarn, lint did not work, so I investigated the cause and solved the problem.

Learn More 3 0Oct 13 '21

テスト

こんにちは!!

Learn More 7 0Nov 16 '17