Skip to content

Commit 269dd8d

Browse files
authored
Remove now-unnecessary Partial<T> usage (#1115)
These were workarounds for not having `noUncheckedIndexAccess` enabled. We have it enabled now.
1 parent 66e71fc commit 269dd8d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/roslib/src/actionlib/ActionClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class ActionClient<
2626
> extends EventEmitter<{
2727
timeout: undefined;
2828
}> {
29-
goals: Partial<Record<string, Goal<TGoal>>> = {};
29+
goals: Record<string, Goal<TGoal>> = {};
3030
/** flag to check if a status has been received */
3131
receivedStatus = false;
3232
ros: Ros;

packages/roslib/src/tf/BaseTFClient.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import type { std_msgs } from "../types/std_msgs.ts";
77
* Base class for TF Clients that provides common functionality.
88
*/
99
export default class BaseTFClient {
10-
frameInfos: Partial<
11-
Record<string, { transform?: Transform; cbs: ((tf: Transform) => void)[] }>
10+
frameInfos: Record<
11+
string,
12+
{ transform?: Transform; cbs: ((tf: Transform) => void)[] }
1213
> = {};
1314
republisherUpdateRequested = false;
1415
ros: Ros;

0 commit comments

Comments
 (0)