-
I noticed that /**
* Use a new `{}` instead.
*
* @since 2.0.0
* @deprecated
*/
export const empty: Record<string, never> = {} But it is not deprecated in /**
* @since 2.5.0
*/
export const empty: ReadonlyRecord<string, never> = {} I am not sure if this is on purpose or I should raise an issue and propose a PR. |
Beta Was this translation helpful? Give feedback.
Answered by
gcanti
Sep 13, 2021
Replies: 1 comment 2 replies
-
@fmpanelli this is on purpose, |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mlegenhausen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@fmpanelli this is on purpose,
empty
inRecord.ts
is mutable, it shouldn't be used (hence the deprecation).