Function GenerateYearMonthId
- GenerateYearMonthId(randomLength?: number, validFunc?: ((id: string) => Promise<boolean>)): Promise<string>
-
Parameters
-
randomLength: number = 4
-
Optional
validFunc: ((id: string) => Promise<boolean>)
-
- (id: string): Promise<boolean>
Returns Promise<string>
YYYYMM + Random
Since
4.0.0
Version
2021-12-11