Some better activity translations

This commit is contained in:
DaneEveritt 2022-06-18 16:36:19 -04:00
parent cf01490883
commit 76472411e3
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 34 additions and 13 deletions

View file

@ -74,4 +74,4 @@ export const isEmptyObject = (o: {}): boolean =>
Object.keys(o).length === 0 && Object.getPrototypeOf(o) === Object.prototype;
// eslint-disable-next-line @typescript-eslint/ban-types
export const getObjectKeys = <T extends {}> (o: T): Array<keyof T> => Object.keys(o) as Array<keyof T>;
export const getObjectKeys = <T extends {}> (o: T): (keyof T)[] => Object.keys(o) as (keyof typeof o)[];