23 lines
379 B
JavaScript
23 lines
379 B
JavaScript
import loaderFactory from './src/loader';
|
|
|
|
export const loader = loaderFactory(
|
|
typeof fetch !== 'undefined' && fetch, // use built-in fetch API
|
|
null // no file system access
|
|
);
|
|
|
|
export {
|
|
default as read
|
|
} from './src/read';
|
|
|
|
export {
|
|
inferType,
|
|
inferTypes,
|
|
typeParsers
|
|
} from './src/type';
|
|
|
|
export {
|
|
format,
|
|
formats,
|
|
responseType
|
|
} from './src/formats/index';
|