Skip to content

Commit bdf0daa

Browse files
authored
Merge pull request #168 from contentstack/feat/DX-2760
feat: Added support of top-level export of Module type for compatibility with "moduleResolution": "Bundler".
2 parents fc3e5f1 + c6e24fc commit bdf0daa

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

package-lock.json

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/delivery-sdk",
3-
"version": "4.6.1",
3+
"version": "4.7.0",
44
"type": "module",
55
"license": "MIT",
66
"main": "./dist/legacy/index.cjs",
@@ -62,5 +62,6 @@
6262
"ts-node": "^10.9.2",
6363
"tsup": "^8.4.0",
6464
"webpack-cli": "^5.1.4"
65-
}
65+
},
66+
"homepage": "https://github.com/contentstack/contentstack-typescript"
6667
}

src/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
import * as contentstack from './lib/contentstack';
22
export * from './lib/types';
3+
export type { Stack } from './lib/stack';
4+
export type { ContentType } from './lib/content-type';
5+
export type { Entry } from './lib/entry';
6+
export type { Asset } from './lib/asset';
7+
export type { Query } from './lib/query';
8+
export type { GlobalField } from './lib/global-field';
9+
export type { GlobalFieldQuery } from './lib/global-field-query';
10+
export type { ImageTransform } from './lib/image-transform';
11+
export type { AssetQuery } from './lib/asset-query';
12+
export type { TaxonomyQuery } from './lib/taxonomy-query';
13+
export type { ContentTypeQuery } from './lib/contenttype-query';
314

415
export default contentstack;

0 commit comments

Comments
 (0)