Audio samples are now played as one shots in the documentation

This commit is contained in:
2023-08-27 22:14:12 +02:00
parent 26099758c0
commit 9792d4458e
3 changed files with 24 additions and 3 deletions

View File

@ -95,3 +95,17 @@ export const evaluate = async (
console.log(error);
}
};
export const evaluateOnce = async (
application: Editor,
code: string
): Promise<void> => {
/**
* Evaluates the code once without any caching or error-handling mechanisms besides the tryCatchWrapper.
*
* @param application - The application object that contains the Editor API.
* @param code - The code to be evaluated.
* @returns A promise that resolves when the code has been evaluated.
*/
await tryCatchWrapper(application, code);
};