Skip to content

Commit

Permalink
feat: make context optional for IoType write
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenoak committed Dec 19, 2023
1 parent 23f1d46 commit c8f2ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type IoStream = {
type IoType = {
getSize: (value: any) => number;
read: (source: IoSource, context?: IoContext) => any;
write?: (source: IoSource, value: any, context: IoContext) => any;
write?: (source: IoSource, value: any, context?: IoContext) => any;
};

export { IoContext, IoSource, IoStream, IoType };

0 comments on commit c8f2ea0

Please sign in to comment.