[Glitch] Profile editing: Utilize new API
Port d18a47b6a7 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
dc27eccc8e
commit
49bed149df
10 files changed
+277
-100
No files matched your search
@@ -24,3 +24,8 @@ export type OmitValueType<T, V> = {
|
||||
export type AnyFunction = (...args: never) => unknown;
|
||||
|
||||
export type OmitUnion<TUnion, TBase> = TBase & Omit<TUnion, keyof TBase>;
|
||||
|
||||
export type SnakeToCamelCase<S extends string> =
|
||||
S extends `${infer T}_${infer U}`
|
||||
? `${T}${Capitalize<SnakeToCamelCase<U>>}`
|
||||
: S;
|
||||
Reference in new issue
Block a user