Skip to content

Commit

Permalink
import cds instead of * as cds (#1311)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akatuoro authored Dec 3, 2024
1 parent 43781b3 commit 5154e2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion srv/travel-service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as cds from '@sap/cds'
import cds from '@sap/cds'
import { Booking, BookingSupplement as Supplements, Travel } from '#cds-models/TravelService'
import { TravelStatusCode } from '#cds-models/sap/fe/cap/travel'
import { CdsDate } from '#cds-models/_'
Expand Down
2 changes: 1 addition & 1 deletion test/odata.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as cds from '@sap/cds'
import cds from '@sap/cds'
import { Travel } from '#cds-models/TravelService'
const { GET, POST, PATCH, axios, expect } = cds.test(__dirname+'/..')
const EDIT = (url) => POST (url+'/TravelService.draftEdit',{})
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"rootDir": "./",
"baseUrl": "./",
"allowJs": true,
"esModuleInterop": true,
"inlineSources": true,
"inlineSourceMap": true,
"moduleResolution": "nodenext",
Expand Down

0 comments on commit 5154e2e

Please sign in to comment.