feat(serializer): add type inference for Order and update tsconfig for DOM support

This commit is contained in:
2026-05-21 17:43:32 +07:00
parent 720b8fbe2f
commit fd228db820
2 changed files with 9 additions and 4 deletions
+3 -1
View File
@@ -122,13 +122,15 @@ const Order = type('Order', {
flags: flags(['ioc', 'post_only', 'reduce_only'] as const),
});
type Order = typeof Order.$infer;
const marketOrder = {
id: 1,
side: 'buy' as const,
qty: 0.5,
price: undefined,
flags: { ioc: true, post_only: false, reduce_only: false },
};
} satisfies Order;
const limitOrder = {
id: 2,