You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Make more of the codebase conform to strict types (#10857)
This commit is contained in:
committed by
GitHub
parent
7f017a84c2
commit
6a3f59cc76
@ -82,12 +82,12 @@ export function createPartCreator(completions: PillPart[] = []) {
|
||||
}
|
||||
|
||||
export function createRenderer() {
|
||||
const render = (c: Caret) => {
|
||||
const render = (c?: Caret) => {
|
||||
render.caret = c;
|
||||
render.count += 1;
|
||||
};
|
||||
render.count = 0;
|
||||
render.caret = null as unknown as Caret;
|
||||
render.caret = null as unknown as Caret | undefined;
|
||||
return render;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user