2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-12 13:47:49 +00:00

Move API modules from iconify package to core package

This commit is contained in:
Vjacheslav Trushkin 2020-06-10 22:26:59 +03:00
parent 5ee1765529
commit 49b9d09f6f
3 changed files with 6 additions and 6 deletions

View File

@ -6,8 +6,8 @@ import {
IconifyAPISendQuery,
IconifyAPIModule,
GetIconifyAPIModule,
} from '@iconify/core/lib/api/modules';
import { GetAPIConfig } from '@iconify/core/lib/api/config';
} from '../modules';
import { GetAPIConfig } from '../config';
/**
* Endpoint

View File

@ -5,8 +5,8 @@ import {
IconifyAPISendQuery,
IconifyAPIModule,
GetIconifyAPIModule,
} from '@iconify/core/lib/api/modules';
import { GetAPIConfig } from '@iconify/core/lib/api/config';
} from '../modules';
import { GetAPIConfig } from '../config';
/**
* Global
@ -193,7 +193,7 @@ export const getAPIModule: GetIconifyAPIModule = (
const cacheKey = provider + ':' + prefix;
// Create callback prefix
const cbPrefix = prefix.split('-').shift().slice(0, 3);
const cbPrefix = prefix.split('-').shift()!.slice(0, 3);
const global = getGlobal();

View File

@ -57,7 +57,7 @@ import {
getAPIConfig,
GetAPIConfig,
} from '@iconify/core/lib/api/config';
import { getAPIModule } from './modules/api-jsonp';
import { getAPIModule } from '@iconify/core/lib/api/modules/jsonp';
import {
IconifyIconLoaderCallback,
IconifyIconLoaderAbort,