mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[PM-20247] Initialize user-core library (#15029)
* Initialize user-core library * Run `npm install` * Fix patched generator bug
This commit is contained in:
9
libs/user-core/src/index.ts
Normal file
9
libs/user-core/src/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Opaque } from "type-fest";
|
||||
|
||||
/**
|
||||
* The main identifier for a user. It is a string that should be in valid guid format.
|
||||
*
|
||||
* You should avoid `as UserId`-ing strings as much as possible and instead retrieve the {@see UserId} from
|
||||
* a valid source instead.
|
||||
*/
|
||||
export type UserId = Opaque<string, "UserId">;
|
||||
Reference in New Issue
Block a user