Skip to content

Commit

Permalink
reverting type return change back to what it was before
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrRogov committed Sep 2, 2023
1 parent 4e1a8ea commit 5c0ec4c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dist/browser/esm/dynamics-web-api.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cjs/dynamics-web-api.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dynamics-web-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export declare class DynamicsWebApi {
*const response = await dynamicsWebApi.create(request);
*
*/
create: <TData = any>(request: CreateRequest<TData>) => Promise<string | TData>;
create: <TData = any>(request: CreateRequest<TData>) => Promise<TData>;
/**
* Sends an asynchronous request to retrieve a record.
*
Expand Down
4 changes: 2 additions & 2 deletions dist/dynamics-web-api.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/dynamics-web-api.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/esm/dynamics-web-api.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/dynamics-web-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class DynamicsWebApi {
*const response = await dynamicsWebApi.create(request);
*
*/
create = async <TData = any>(request: CreateRequest<TData>): Promise<TData | string> => {
create = async <TData = any>(request: CreateRequest<TData>): Promise<TData> => {
ErrorHelper.parameterCheck(request, "DynamicsWebApi.create", "request");

let internalRequest: Core.InternalRequest;
Expand Down

0 comments on commit 5c0ec4c

Please sign in to comment.