Linter standard (#49)

* Impl

* Fix

* Fix

* Bump

* Bump

* Fix

* Bump
This commit is contained in:
Aleksandr Kraiz
2023-02-14 00:34:37 +04:00
committed by GitHub
parent 7040df6142
commit c12a4e8e7a
48 changed files with 964 additions and 594 deletions

View File

@@ -1,4 +1,4 @@
import { Schema, z } from 'zod';
import { type Schema, type z } from 'zod';
import fetch from 'isomorphic-unfetch';
import {
@@ -26,7 +26,7 @@ export default async function fetchWithValidation<DataOut, DataIn, ErrorOut, Err
// payload
const fetchResult = await fromPromise(fetch(url, {
...options || {},
...options ?? {},
headers: {
'Cache-Control': 'no-store, max-age=0',
...(options ? options.headers : {}),