mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-20 16:30:34 +00:00
docs: add note about Distinct
== newtype
This commit is contained in:
parent
15ce507220
commit
bc65e70e64
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user