www.kravchyk.com Open in urlscan Pro
2606:4700:3030::6815:7c8  Public Scan

Submitted URL: https://kravchyk.com/
Effective URL: https://www.kravchyk.com/
Submission: On July 03 via automatic, source certstream-suspicious — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

Skip to content


KRAVCHYK'S


Menu
Menu
 * About




HANDLING KEYBOARD SHORTCUTS ON NON-LATIN ALPHABET LAYOUTS

February 26, 2024February 26, 2024 by Maciej Kravchyk

Suppose you build a desktop app and add keyboard shortcuts such as Ctrl+S to
save the document. It’s pretty straightforward to wire it for keyboard layouts
that are based on the Latin script. How would you go about handling keyboard
shortcuts on non-Latin layouts such as Cyrillic or Greek? Languages that do not
use Latin … Read more

Categories Development


ADDING TYPE SAFETY TO OBJECT IDS IN TYPESCRIPT

January 29, 2024 by Maciej Kravchyk

I was creating a type for an options object of a function, one of the options
properties would accept an ID of the item (string based UUID) or a special
value, i.e. ‘currentNode’. Initially I would come up with something like this:
Try It There are 2 problems with this approach: type NodeId = string … Read more

Categories Development


TYPESCRIPT AND NPM PACKAGE.JSON EXPORTS THE 2024 WAY

January 25, 2024January 25, 2024 by Maciej Kravchyk

The package.json exports field is the new, official standard for declaring
package entry points. Using it with TypeScript is not so obvious and easy to get
wrong in a way where you only find out via an issue report from a user of your
library. Let’s find out how to make package.json exports work with … Read more

Categories Development


TYPESCRIPT INDEX SIGNATURES – EVERYTHING YOU HAVE TO KNOW

January 25, 2024January 22, 2024 by Maciej Kravchyk

It’s not uncommon to get an Index signature for type ‘string’ is missing in type
‘A’ error in TypeScript. The error message is pretty straightforward to
understand… once you know what an index signature is in the first place – so
what are TypeScript index signatures exactly and what are the non-obvious
gotchas? An index … Read more

Categories Development
Copyright © 2024 Kravchyk.com