1
0
mirror of https://github.com/dzeiocom/libs.git synced 2025-04-22 02:42:13 +00:00

feat(object-util): export BasicObjectKeys and BasicObject types

The `BasicObjectKeys` and `BasicObject` types are now exported for use outside of the module.

Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
Florian Bouillon 2023-03-14 10:50:14 +01:00
parent c664af98ba
commit d67c53d89d
Signed by: Florian Bouillon
GPG Key ID: E05B3A94178D3A7C

View File

@ -1,5 +1,5 @@
type BasicObjectKeys = string | number | symbol
type BasicObject<K extends BasicObjectKeys = BasicObjectKeys, V = any> = { [P in K]?: V }
export type BasicObjectKeys = string | number | symbol
export type BasicObject<K extends BasicObjectKeys = BasicObjectKeys, V = any> = { [P in K]?: V }
/**
* Remap an object to an array through a function