Add UI input & textarea
Signed-off-by: Bryan Frimin <bryan@getprobo.com> Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
committed by
Sacha Al Himdani
parent
a86181c83d
commit
15cf471454
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* A type safe version of Object.keys
|
||||
*/
|
||||
export function objectKeys<T>(object: T) {
|
||||
export function objectKeys<T extends Record<string, unknown>>(object: T) {
|
||||
return Object.keys(object) as (keyof T)[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user