Skip to content

Commit

Permalink
chore: add comment for getTsid()
Browse files Browse the repository at this point in the history
  • Loading branch information
yubinTW committed Nov 28, 2023
1 parent 4f66658 commit 0c851ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tsid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ _setAlphabetValues('l', 1)

type StringFormat = 's' | 'S' | 'x' | 'X' | 'd' | 'z'

/**
* Returns a new TSID.
* @returns TSID
*/
export const getTsid: () => TSID = () => TSID.create()

export class TSID {
Expand Down

0 comments on commit 0c851ea

Please sign in to comment.