---
title: "Discussion on \"Querying elements in a typesafe manner\" | Hashnode"
description: "Discussion on \"Querying elements in a typesafe manner\". If you are like me, you may not like typescript but you do like proper types. With jsdoc, it's easy enough to add proper typing to any bit of vanilla javascript code.\nHowever, things are not so great when you use the querySelector and querySelectorAl..."
url: "https://hashnode.com/posts/querying-elements-in-a-typesafe-manner/643527990357c0256bb2899f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Querying elements in a typesafe manner](https://blog.lekoala.be/querying-elements-in-a-typesafe-manner?utm_source=hashnode&utm_medium=feed)

If you are like me, you may not like typescript but you do like proper types. With jsdoc, it's easy enough to add proper typing to any bit of vanilla javascript code. However, things are not so great when you use the querySelector and querySelectorAl...

Apr 11, 2023 · 4 min read · blog.lekoala.be  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js](https://hashnode.com/tag/js)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#vscode-tips](https://hashnode.com/tag/vscode-tips)

## Written by

[Thomas Portelange](https://hashnode.com/@lekoala)

@lekoala · Belgium

  
[View profile](https://hashnode.com/@lekoala)

A PHP/JS Web Developer based in Belgium

A Web Developer based in Belgium, specialized in PHP &amp; JS development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
