diff options
author | Elizabeth Hunt <elizabeth@simponic.xyz> | 2025-03-02 16:32:01 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth@simponic.xyz> | 2025-03-02 16:32:01 -0700 |
commit | d8511f4ad3bc3a326de7f7af2fb8703d5f471e36 (patch) | |
tree | aaf7a91a60eb7436f0d00883cd54ecb90d703d8e /src/engine/utils | |
parent | 16eb0ad4d5d8b2ba915eae5190e6b0cfe8a1573c (diff) | |
download | the-abstraction-engine-d8511f4ad3bc3a326de7f7af2fb8703d5f471e36.tar.gz the-abstraction-engine-d8511f4ad3bc3a326de7f7af2fb8703d5f471e36.zip |
run prettier
Diffstat (limited to 'src/engine/utils')
-rw-r--r-- | src/engine/utils/CodeEditor.ts | 6 | ||||
-rw-r--r-- | src/engine/utils/Modal.ts | 2 | ||||
-rw-r--r-- | src/engine/utils/index.ts | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/utils/CodeEditor.ts b/src/engine/utils/CodeEditor.ts index 144cc29..ecc80bc 100644 --- a/src/engine/utils/CodeEditor.ts +++ b/src/engine/utils/CodeEditor.ts @@ -36,7 +36,7 @@ interface CodeEditorState { export class CodeEditorInstance { constructor( private modalInstance: ModalInstance = ModalSingleton, - private codeEditorState: CodeEditorState | null = null + private codeEditorState: CodeEditorState | null = null, ) {} public close() { @@ -54,7 +54,7 @@ export class CodeEditorInstance { initCode: string, codeConsumer: CodeEditorState["codeConsumer"], readonly: boolean = false, - initResult: { data?: string; error?: string } = {} + initResult: { data?: string; error?: string } = {}, ) { if (this.codeEditorState) { throw new Error("code editor instance is already owned."); @@ -87,7 +87,7 @@ export class CodeEditorInstance { const resultElement = document.getElementById("result")!; const closeButton = document.getElementById( - "close-modal" + "close-modal", ) as HTMLButtonElement; closeButton.addEventListener("click", () => this.onSave()); diff --git a/src/engine/utils/Modal.ts b/src/engine/utils/Modal.ts index d46cade..761c29f 100644 --- a/src/engine/utils/Modal.ts +++ b/src/engine/utils/Modal.ts @@ -42,4 +42,4 @@ export class ModalInstance { } } -export const ModalSingleton = new ModalInstance();
\ No newline at end of file +export const ModalSingleton = new ModalInstance(); diff --git a/src/engine/utils/index.ts b/src/engine/utils/index.ts index ffeef7a..9293baa 100644 --- a/src/engine/utils/index.ts +++ b/src/engine/utils/index.ts @@ -3,6 +3,6 @@ export * from "./dotProduct"; export * from "./rotateVector"; export * from "./colors"; export * from "./random"; -export * from './tryWrap'; +export * from "./tryWrap"; export * from "./Modal"; -export * from "./CodeEditor";
\ No newline at end of file +export * from "./CodeEditor"; |