From b3c6a9646e624c16583ce25fdcb755785e6a0c95 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 16 Aug 2023 16:16:23 +0200 Subject: [PATCH] style: lint code --- .prettierrc | 3 +++ src/utils.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..757fd64 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +{ + "trailingComma": "es5" +} diff --git a/src/utils.ts b/src/utils.ts index 15bc2a0..ac8db87 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -46,7 +46,7 @@ export interface ResponseMap { export type ResponseType = keyof ResponseMap | "json"; export type MappedType< R extends ResponseType, - JsonType = any + JsonType = any, > = R extends keyof ResponseMap ? ResponseMap[R] : JsonType; // This provides reasonable defaults for the correct parser based on Content-Type header.