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;
|
||
|
}
|