Jak generować UUID w TypeScript

first npm install --save-dev @types/uuid
sec :import { v4 as uuid } from 'uuid';
third :const id: string = uuid();
Misty Moose