@teamnovu/kit-shopware-api-client 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +1 -1
- package/package.json +1 -1
- package/src/client.ts +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from './eventEmitter';
|
|
2
2
|
import { OperationOptions, OperationProp, ShopwareClientOptions } from './types';
|
|
3
3
|
export interface ResponseType<TKey> {
|
|
4
|
-
__response
|
|
4
|
+
__response?: TKey;
|
|
5
5
|
}
|
|
6
6
|
export type BrandedResponse<Operations, OperationKey extends (keyof Operations) & string> = ResponseType<OperationKey> & OperationProp<Operations, OperationKey, 'response'>;
|
|
7
7
|
export declare class ShopwareClient<Operations> extends EventEmitter {
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -13,7 +13,7 @@ const operationRegex = /^(?<name>\w+?)\s(?<method>get|post|put|patch|delete)\s+(
|
|
|
13
13
|
// This is to ensure that the response type is not already resolved when the
|
|
14
14
|
// library is built so we can still use module augmentation to override operations.
|
|
15
15
|
export interface ResponseType<TKey> {
|
|
16
|
-
__response
|
|
16
|
+
__response?: TKey
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export type BrandedResponse<Operations, OperationKey extends (keyof Operations) & string> =
|