flow exact objects by default (#1249)

This commit is contained in:
Max Haubenstock
2022-02-08 16:43:59 -05:00
committed by acywatson
parent 2020bbadd5
commit bf6bf30504
13 changed files with 34 additions and 16 deletions

View File

@ -37,7 +37,7 @@ type OptionalProps = {
export function useCharacterLimit(
editor: LexicalEditor,
maxCharacters: number,
optional: OptionalProps = {},
optional: OptionalProps = Object.freeze({}),
): void {
const {
strlen = (input) => input.length, // UTF-16