Skip to content

Commit

Permalink
Allow optional suffix in generateUID method
Browse files Browse the repository at this point in the history
Modified generateUID method signature to accept an optional suffix parameter. This change improves flexibility, enabling the function to be used without always requiring a suffix.
  • Loading branch information
PxaMMaxP committed Jul 24, 2024
1 parent 30043f2 commit fad784b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/Helper/General.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Register } from '../DependencyInjection/decorators/Register';
import { Lifecycle } from '../LifecycleManager/decorators/Lifecycle';

export interface IHelperGeneral_ {
generateUID(input: string, length: number, sufix: string): string;
generateUID(input: string, length: number, sufix?: string): string;
generateAcronym(text: string, length: number, prefix: string): string;
sleep(ms: number): Promise<void>;
deepClone<T>(obj: T): T;
Expand Down

0 comments on commit fad784b

Please sign in to comment.