From da553431c9c3097cf69aead33cacc7f53d71a9fb Mon Sep 17 00:00:00 2001 From: janhommes Date: Thu, 26 Sep 2019 12:10:53 +0200 Subject: [PATCH] Fixing missing OdataBatch typings --- package.json | 2 +- src/OdataBatchConfig.ts | 7 ------- src/OdataConfig.ts | 11 +++++++++-- src/o.ts | 1 - 4 files changed, 10 insertions(+), 11 deletions(-) delete mode 100644 src/OdataBatchConfig.ts diff --git a/package.json b/package.json index 0666dd7..36f8a73 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "o.js", "description": "o.js is a isomorphic Odata Javascript library to simplify the request of data. The main goal is to build a standalone, lightweight and easy to understand Odata lib.", - "version": "1.0.3", + "version": "1.0.4", "main": "dist/cjs/o.js", "browser": "dist/umd/o.js", "module": "dist/es2015/o.js", diff --git a/src/OdataBatchConfig.ts b/src/OdataBatchConfig.ts deleted file mode 100644 index fa01b95..0000000 --- a/src/OdataBatchConfig.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface OdataBatchConfig { - endpoint?: string; - headers?: Headers; - boundaryPrefix?: string; - useChangset: boolean; - changsetBoundaryPrefix?: string; -} diff --git a/src/OdataConfig.ts b/src/OdataConfig.ts index acf5ddc..2246759 100644 --- a/src/OdataConfig.ts +++ b/src/OdataConfig.ts @@ -1,5 +1,12 @@ -import { OdataBatchConfig } from "./OdataBatchConfig"; -import { OHandler } from './OHandler'; +import { OHandler } from "./OHandler"; + +export interface OdataBatchConfig { + endpoint?: string; + headers?: Headers; + boundaryPrefix?: string; + useChangset: boolean; + changsetBoundaryPrefix?: string; +} export type OdataConfig = RequestInit & { /** diff --git a/src/o.ts b/src/o.ts index 4b160fe..7446b42 100644 --- a/src/o.ts +++ b/src/o.ts @@ -77,7 +77,6 @@ export function o(rootUrl: string | URL, config: OdataConfig | any = {}) { * Default exports */ export * from "./OBatch"; -export * from "./OdataBatchConfig"; export * from "./OdataConfig"; export * from "./OdataQuery"; export * from "./OHandler";