Skip to content

Commit

Permalink
update motor.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicap committed Jul 10, 2024
1 parent eccff0b commit 4885a76
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ts-examples/@types/motor.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
declare module "motor" {

type MoveDuration = {
distance?: number;
time?: number;
}
type MoveDuration = { distance: number; } | { time: number; } | { };

type MotorPins = {
motA: number;
Expand Down

0 comments on commit 4885a76

Please sign in to comment.