Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
r4zendev committed Jan 19, 2024
1 parent 0af95e2 commit 0faaee7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/data/schemata/consoleKind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export const consoleKindSchema = S.union(
S.literal('trace'),
S.literal('warn'),
);

export type ConsoleKind = S.Schema.To<typeof consoleKindSchema>;
export const parseConsoleKind = S.parseSync(consoleKindSchema);
1 change: 1 addition & 0 deletions src/data/schemata/mainThreadMessage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as S from '@effect/schema/Schema';

const mainThreadMessageSchema = S.union(S.struct({ kind: S.literal('exit') }));

export type MainThreadMessage = S.Schema.To<typeof mainThreadMessageSchema>;
export const decodeMainThreadMessage = S.parseSync(mainThreadMessageSchema);
4 changes: 0 additions & 4 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ const messageHandler = async (m: unknown) => {
}

sendLog('log', `Received message: ${JSON.stringify(message)}`);

// TODO:
// parentPort?.postMessage({
// } satisfies WorkerThreadMessage);
} catch (error) {
parentPort?.postMessage({
kind: 'error',
Expand Down

0 comments on commit 0faaee7

Please sign in to comment.