Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed Aug 16, 2020
1 parent de20cbe commit 8a722c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/Transport/Response/JSONResponse.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {ResponseAbstract} from "./ResponseAbstract";

export class JSONResponse extends ResponseAbstract<any> {
export class JSONResponse<T extends any> extends ResponseAbstract<T> {
public readonly type = "application/json";

public stringify(data: any): string {
public stringify(data: T): string {
return JSON.stringify(data);
}
}

0 comments on commit 8a722c8

Please sign in to comment.