@launchmenu/applet-notes
Version:
An applet to make short notes
22 lines • 918 B
TypeScript
import { IInherit } from "../dataModel/_types/IInherit";
import { INoteCategoryMetadata } from "../dataModel/_types/INoteCategoryMetadata";
import { INoteAppearanceMetadata } from "../dataModel/_types/INoteAppearanceMetadata";
import { LaunchMenu } from "@launchmenu/core";
/**
* Sets up the notes
* @param config The configuration for the notes to add
* @returns A function that can be invoked to restore the previous notes
*/
export declare function setupNotes({ LM, notes, categories, }: {
/** The LM instance to retrieve data from */
LM: LaunchMenu;
/** The notes to be added */
notes: ({
name: string;
content: string;
categoryID?: string;
} & Partial<INoteAppearanceMetadata<IInherit>>)[];
/** The categories to be added */
categories: INoteCategoryMetadata[];
}): Promise<() => Promise<void>>;
//# sourceMappingURL=setupNotes.d.ts.map