fix: move common api functions to a separate file (#3511)

This commit is contained in:
Erez Rokah
2020-04-01 11:44:39 +03:00
committed by GitHub
parent 816bef5ffa
commit 49098de27f
7 changed files with 75 additions and 91 deletions

View File

@ -9,7 +9,7 @@ import {
CMS_BRANCH_PREFIX,
statusToLabel,
labelToStatus,
} from 'netlify-cms-lib-util/src/API';
} from 'netlify-cms-lib-util/src/APIUtils';
import { defaultSchema, joi } from '../joi';
import {

View File

@ -1,5 +0,0 @@
declare module 'semaphore' {
export type Semaphore = { take: (f: Function) => void; leave: () => void };
const semaphore: (count: number) => Semaphore;
export default semaphore;
}