Skip to content

Commit

Permalink
Align exposed method names to plugin interface
Browse files Browse the repository at this point in the history
with the internal methods called by the HTTP endpoints.
  • Loading branch information
panaaj committed Sep 16, 2023
1 parent 59ab231 commit 9fda6b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/server-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ export interface ServerAPI extends PluginServerApp {
}) => void
getSerialPorts: () => Promise<Ports>
getCourse: () => CourseInfo
destination: (
setDestination: (
dest: (Destination & { arrivalCircle?: number }) | null
) => Promise<void>
activeRoute: (dest: RouteDest | null) => Promise<void>
activateRoute: (dest: RouteDest | null) => Promise<void>
}
4 changes: 2 additions & 2 deletions src/interfaces/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,12 @@ module.exports = (theApp: any) => {
appCopy.getCourse = () => {
return courseApi.getCourse()
}
appCopy.destination = (
appCopy.setDestination = (
dest: (Destination & { arrivalCircle?: number }) | null
) => {
return courseApi.destination(dest)
}
appCopy.activeRoute = (dest: RouteDest | null) => {
appCopy.activateRoute = (dest: RouteDest | null) => {
return courseApi.activeRoute(dest)
}

Expand Down

0 comments on commit 9fda6b5

Please sign in to comment.