Skip to content

Commit

Permalink
Remove index.d.ts indirection
Browse files Browse the repository at this point in the history
  • Loading branch information
chgeo committed Dec 6, 2023
1 parent 59eb8ae commit 318c6c0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions index.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
],
"author": "SAP SE (https://www.sap.com)",
"license": "SEE LICENSE IN LICENSE",
"typings": "apis/cds.d.ts",
"files": [
"index.d.ts",
"apis/",
"LICENSE",
"README.md"
Expand Down
2 changes: 1 addition & 1 deletion test/typescript/apis/project/cds-log.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cds from '../../../../apis/cds'
import cds from '../../../..'
import * as winston from "winston"

cds.log('foo').debug('message')
Expand Down
2 changes: 1 addition & 1 deletion test/typescript/apis/project/cds-services.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cds from '../../../../apis/cds'
import cds from '../../../..'
import { Foo, Foos, action } from './dummy'
import User from '../../../../apis/core'

Expand Down
2 changes: 1 addition & 1 deletion test/typescript/apis/project/cds-test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cds from '../../../../apis/cds'
import cds from '../../../..'

const test = cds.test(__dirname).in('other')
cds.test('serve', '--in-memory', '--project', __dirname)
Expand Down
2 changes: 1 addition & 1 deletion test/typescript/apis/project/cds-user.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cds from '../../../../apis/cds'
import cds from '../../../..'
import { User } from '../../../../apis/cds'

// accepts no args
Expand Down
4 changes: 2 additions & 2 deletions test/typescript/apis/project/cds-utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cds from '../../../../apis/cds'
import cds from '../../../..'

const uuid: string = cds.utils.uuid()
const decodeURI: string = cds.utils.decodeURI('https://developer.mozilla.org/docs/JavaScript%3A%20a_scripting_language')
Expand All @@ -9,7 +9,7 @@ const isDir: string = cds.utils.isdir('app')
const isFile: string = cds.utils.isfile('package.json')

const { read, write } = cds.utils

const rd: Buffer | {} = await read ('package.json')

await write ({foo:'bar'}) .to ('some','file.json')
Expand Down

0 comments on commit 318c6c0

Please sign in to comment.