---
title: "Discussion on \"TypeScript Positive Integer Type\" | Hashnode"
description: "Discussion on \"TypeScript Positive Integer Type\". Learn how to define the PositiveInteger and NonnegativeInteger dependent types in TypeScript without using type predicates or branded (tagged) types."
url: "https://hashnode.com/posts/typescript-positive-integer-type/63da1d08ff6ab9eb953119a3"
---

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

Discussion

# [TypeScript Positive Integer Type](https://mvasilkov.animuchan.net/typescript-positive-integer-type?utm_source=hashnode&utm_medium=feed)

Learn how to define the PositiveInteger and NonnegativeInteger dependent types in TypeScript without using type predicates or branded (tagged) types.

Feb 1, 2023 · 1 min read · mvasilkov.animuchan.net  
Updated Apr 19, 2023  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#types](https://hashnode.com/tag/types)

## Written by

[Mark Vasilkov](https://hashnode.com/@mvasilkov)

@mvasilkov

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

Computer programmer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
