frest
Version:
REST client for browser with Fetch
21 lines (17 loc) • 405 B
text/typescript
/**
* @module frest
* @hidden
*/
/* eslint-disable no-restricted-globals */
import { Frest, FrestConstructor } from './Frest';
import { FrestError, FrestErrorConstructor } from './FrestError';
declare global {
interface Window {
Frest: FrestConstructor;
FrestError: FrestErrorConstructor;
frest: Frest;
}
}
self.frest = new Frest();
self.Frest = Frest;
self.FrestError = FrestError;