STF to ESM

This commit is contained in:
Aleksandr Kraiz
2023-04-03 20:17:38 +04:00
parent 665bd568a4
commit bfa88fabaa
16 changed files with 22 additions and 49 deletions

View File

@@ -1,4 +1,4 @@
import stf from 'simple-typed-fetch';
import { fetchWithValidation } from 'simple-typed-fetch';
import {
errorSchema,
miniStatsSchema,
@@ -9,8 +9,6 @@ import {
linkSchema,
} from './schemas/index.js';
const { fetchWithValidation } = stf;
type CreateLinkPayloadType = {
referer: string
link_option: number