934a9bd24b
This is to provide minimal closures for the mutable file-local variables: - changeTimer - previousActiveElement - currentNoteId This makes it clear, that they should not be used, but rather the functions which wrap them in an API
10 lines
188 B
TypeScript
10 lines
188 B
TypeScript
let currentNoteId: number | null = null;
|
|
|
|
export function setNoteId(id: number): void {
|
|
currentNoteId = id;
|
|
}
|
|
|
|
export function getNoteId(): number | null {
|
|
return currentNoteId;
|
|
}
|