mod-arch-core
Version:
Core functionality and API utilities for modular architecture micro-frontend projects
19 lines • 421 B
TypeScript
export type APIOptions = {
dryRun?: boolean;
signal?: AbortSignal;
parseJSON?: boolean;
headers?: Record<string, string>;
};
export type APIError = {
error: {
code: string;
message: string;
};
};
export type APIState<T> = {
/** If API will successfully call */
apiAvailable: boolean;
/** The available API functions */
api: T;
};
//# sourceMappingURL=types.d.ts.map