Skip to content
This repository was archived by the owner on Apr 10, 2026. It is now read-only.

fix: test board ts error#98

Merged
xiduzo merged 1 commit into
mainfrom
feature/fix-build
Nov 22, 2025
Merged

fix: test board ts error#98
xiduzo merged 1 commit into
mainfrom
feature/fix-build

Conversation

@xiduzo

@xiduzo xiduzo commented Nov 22, 2025

Copy link
Copy Markdown
Owner

This pull request introduces a minor change to the packages/hardware/test.ts file. The change adds a TypeScript ignore directive to suppress a type error related to the board parameter when initializing the pixel.Strip object.

Copilot AI review requested due to automatic review settings November 22, 2025 16:29
@vercel

vercel Bot commented Nov 22, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
microflow Skipped Skipped Nov 22, 2025 4:29pm

@xiduzo xiduzo merged commit 0f65557 into main Nov 22, 2025
8 of 9 checks passed
@xiduzo xiduzo deleted the feature/fix-build branch November 22, 2025 16:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a TypeScript ignore directive to suppress a type error when passing the board parameter to the pixel.Strip constructor in a hardware test file. The change allows the code to compile despite a type mismatch between the johnny-five Board object and what the node-pixel library expects.

Key Changes

  • Adds @ts-ignore comment to suppress TypeScript error on the board parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/hardware/test.ts
const strip = new pixel.Strip({
data: 12, // LED data pin
length: 24, // number of LEDs
// @ts-ignore board errpr

Copilot AI Nov 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error in the comment: "errpr" should be "error".

Suggested change
// @ts-ignore board errpr
// @ts-ignore board error

Copilot uses AI. Check for mistakes.
Comment thread packages/hardware/test.ts
Comment on lines +14 to 15
// @ts-ignore board errpr
board: board,

Copilot AI Nov 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using @ts-ignore to suppress type errors is not recommended. Consider using @ts-expect-error instead, which will fail if the type error is fixed in the future (helping to clean up unnecessary suppressions). Alternatively, investigate and fix the underlying type issue properly by ensuring the board types are correctly defined or by using type assertions like board as any or more specific type casting.

Suggested change
// @ts-ignore board errpr
board: board,
board: board as any,

Copilot uses AI. Check for mistakes.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants