mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
flow exact objects by default (#1249)
This commit is contained in:

committed by
acywatson

parent
2020bbadd5
commit
bf6bf30504
@ -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
|
||||
|
Reference in New Issue
Block a user