1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00

Convert MediaInfo to TypeScript

This commit is contained in:
Mark McDowall
2024-12-07 19:04:18 -08:00
parent 34ae65c087
commit 4e4bf3507f
11 changed files with 166 additions and 198 deletions
@@ -0,0 +1,9 @@
export type Entries<T> = {
[K in keyof T]: [K, T[K]];
}[keyof T][];
function getEntries<T extends object>(obj: T): Entries<T> {
return Object.entries(obj) as Entries<T>;
}
export default getEntries;