@univerjs/network
Network service abstractions for Univer runtime integrations.
TypeScript
import { UniverNetworkPlugin } from '@univerjs/network'univer.registerPlugin(UniverNetworkPlugin, IUniverNetworkConfig)Entry Points
- Facade:
@univerjs/network/facade
IUniverNetworkConfig
TypeScript
import type { DependencyOverride } from '@univerjs/core'export interface IUniverNetworkConfig { /** * Use fetch instead of XMLHttpRequest. By default, Univer will use fetch on Node.js and XMLHttpRequest in browser. */ useFetchImpl?: boolean /** * Build in dependencies that can be overridden: * * - {@link HTTPService} * - {@link IHTTPImplementation} */ override?: DependencyOverride /** * Force to use a new instance of {@link HTTPService} and {@link IHTTPImplementation} even if * an ancestor injector already has them registered. */ forceUseNewInstance?: boolean}How is this guide?