mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 17:26:26 +01:00
♻️ Address pull request feedback
This commit is contained in:
3
src/types/helpers.ts
Normal file
3
src/types/helpers.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export type OnlyKeysWithStructure<T, TStructure> = {
|
||||
[P in keyof T]: T[P] extends TStructure ? P : never;
|
||||
}[keyof T];
|
||||
Reference in New Issue
Block a user