mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Use UUIDs in group database schema
This commit is contained in:
@@ -31,3 +31,11 @@ export function strictAssert(
|
||||
throw new Error(message);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that the type of value is not a promise.
|
||||
* (Useful for database modules)
|
||||
*/
|
||||
export function assertSync<T, X>(value: T extends Promise<X> ? never : T): T {
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user