mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
refactor(server): role actions definition (#9962)
This commit is contained in:
@@ -45,6 +45,14 @@ export type LeafPaths<
|
||||
}[keyof T]
|
||||
: never;
|
||||
|
||||
export type LeafVisitor<T, P extends string = ''> = {
|
||||
[K in keyof T]: T[K] extends object
|
||||
? LeafVisitor<T[K], Join<P, K>>
|
||||
: P extends ''
|
||||
? K
|
||||
: Join<P, K>;
|
||||
};
|
||||
|
||||
export interface FileUpload {
|
||||
filename: string;
|
||||
mimetype: string;
|
||||
|
||||
Reference in New Issue
Block a user