docs: add note about Distinct == newtype

This commit is contained in:
Rickard Andersson 2023-08-03 11:48:42 +03:00
parent 15ce507220
commit bc65e70e64

View File

@ -4,7 +4,7 @@
/**
* Allows one to create a type that is stored as an underlying type but is distinct from it in the
* type system.
* type system. This is also sometimes known as a "newtype".
*
* @example
* // Creates a distinct `UUID` type from a `string` which can then be expected and only passed