Fixed creation of users + better frontend handling of permissions
This commit is contained in:
16
frontend/types/global.d.ts
vendored
Normal file
16
frontend/types/global.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// types/global.d.ts
|
||||
declare namespace DiffUtils {
|
||||
function getDifferences<T extends object>(obj1: T, obj2: T): Partial<T>;
|
||||
function isEmpty<T extends object>(obj: T): boolean;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
DiffUtils: typeof DiffUtils;
|
||||
}
|
||||
namespace NodeJS {
|
||||
interface Global {
|
||||
DiffUtils: typeof DiffUtils;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user