Skip to content

Commit

Permalink
improve types for flight-management example
Browse files Browse the repository at this point in the history
  • Loading branch information
KhudaDad414 committed Oct 12, 2023
1 parent a7aec69 commit 9ddc198
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/flight-management/backend/Events/allFlights.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import DatabaseManager from '../helpters/DatabaseManager.js'
import type {GleeFunctionReturn} from '@asyncapi/glee/src/lib'
import type { GleeFunctionReturn } from '@asyncapi/glee'

export default async function getFlights(airportCode: string): Promise<GleeFunctionReturn> {
const flights = await DatabaseManager.getInstance().getFlights(airportCode)
Expand Down
2 changes: 1 addition & 1 deletion examples/flight-management/backend/Events/updateFlight.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GleeFunctionReturn } from '@asyncapi/glee/src/lib/index.js'
import type { GleeFunctionReturn } from '@asyncapi/glee'
import DatabaseManager from '../helpters/DatabaseManager.js'
export default async function updateFlight(flight):Promise<GleeFunctionReturn> {
const isSuccessful = await DatabaseManager.getInstance().updateFlight(flight)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GleeFunctionReturn } from '@asyncapi/glee'
import type { GleeFunctionReturn } from '@asyncapi/glee'
import allFlights from '../Events/allFlights.js'
import updateFlight from '../Events/updateFlight.js'
export default async function (gleeEvent): Promise<GleeFunctionReturn> {
Expand Down
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type * from './lib/index.d.ts'

0 comments on commit 9ddc198

Please sign in to comment.