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.