Skip to content

Commit d24f024

Browse files
authored
docs: add missing nanoid function doc (#368)
1 parent 97c38fc commit d24f024

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/reference/zmodel-language.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,14 @@ function cuid(): String {}
873873

874874
Generates a globally unique identifier based on the [CUID](https://github.com/ericelliott/cuid) spec.
875875

876+
##### nanoid()
877+
878+
```zmodel
879+
function nanoid(length: Int?): String {}
880+
```
881+
882+
Generates an identifier based on the [nanoid](https://github.com/ai/nanoid) spec.
883+
876884
##### now()
877885

878886
```zmodel

0 commit comments

Comments
 (0)