Skip to content

Commit

Permalink
fix: typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Jan 1, 2025
1 parent d7617d1 commit e8c9761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/machines/qr-code/src/qr-code.dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import type { MachineContext as Ctx } from "./qr-code.types"
export const dom = createScope({
getRootId: (ctx: Ctx) => ctx.ids?.root ?? `qrcode:${ctx.id}:root`,
getFrameId: (ctx: Ctx) => ctx.ids?.frame ?? `qrcode:${ctx.id}:frame`,
getFrameEl: (ctx: Ctx) => dom.getById<SVGElement>(ctx, dom.getFrameId(ctx)),
getFrameEl: (ctx: Ctx) => dom.getById<SVGSVGElement>(ctx, dom.getFrameId(ctx)),
})
2 changes: 1 addition & 1 deletion packages/machines/signature-pad/src/signature-pad.dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const dom = createScope({
getHiddenInputId: (ctx: Ctx) => ctx.ids?.hiddenInput ?? `signature-input-${ctx.id}`,

getControlEl: (ctx: Ctx) => dom.getById(ctx, dom.getControlId(ctx)),
getSegmentEl: (ctx: Ctx) => query<SVGElement>(dom.getControlEl(ctx), "[data-part=segment]"),
getSegmentEl: (ctx: Ctx) => query<SVGSVGElement>(dom.getControlEl(ctx), "[data-part=segment]"),
getHiddenInputEl: (ctx: Ctx) => dom.getById(ctx, dom.getHiddenInputId(ctx)),

getDataUrl: (ctx: Ctx, options: DataUrlOptions): Promise<string> => {
Expand Down

0 comments on commit e8c9761

Please sign in to comment.