Migrate to vite & new structure
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
db9e5f32ac
commit
a2d1310780
1
packages/helpers/src/index.ts
Normal file
1
packages/helpers/src/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { objectKeys } from "./object";
|
||||
6
packages/helpers/src/object.ts
Normal file
6
packages/helpers/src/object.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* A type safe version of Object.keys
|
||||
*/
|
||||
export function objectKeys<T>(object: T) {
|
||||
return Object.keys(object) as (keyof T)[];
|
||||
}
|
||||
Reference in New Issue
Block a user