Skip to content

Commit

Permalink
fix(type): data type
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD authored and njfamirm committed May 18, 2023
1 parent dfe9728 commit 0601384
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/type/src/service-response.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {StringifyableRecord} from './type-helper.js';
import {Stringifyable, StringifyableRecord} from './type-helper.js';

export type Methods = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'TRACE' | 'OPTIONS' | 'PATCH';

Expand All @@ -14,7 +14,7 @@ export interface AlwatrServiceResponseFailed extends StringifyableRecord {
data?: never;
}

export interface AlwatrServiceResponseSuccess<TData extends StringifyableRecord = StringifyableRecord>
export interface AlwatrServiceResponseSuccess<TData extends Stringifyable = Stringifyable>
extends StringifyableRecord {
ok: true;
statusCode?: number;
Expand All @@ -24,7 +24,7 @@ export interface AlwatrServiceResponseSuccess<TData extends StringifyableRecord
}

export interface AlwatrServiceResponseSuccessWithMeta<
TData extends StringifyableRecord = StringifyableRecord,
TData extends Stringifyable = Stringifyable,
TMeta extends StringifyableRecord = StringifyableRecord
> extends StringifyableRecord {
ok: true;
Expand All @@ -35,7 +35,7 @@ export interface AlwatrServiceResponseSuccessWithMeta<
}

export type AlwatrServiceResponse<
TData extends StringifyableRecord = StringifyableRecord,
TData extends Stringifyable = Stringifyable,
TMeta extends StringifyableRecord = StringifyableRecord
> =
| AlwatrServiceResponseSuccess<TData>
Expand Down

0 comments on commit 0601384

Please sign in to comment.