sp-dev-fx-webparts/samples/react-rhythm-of-business-ca.../mock_modules/@microsoft/sp-http/index.ts

20 lines
712 B
TypeScript

export type SPHttpClientConfiguration = any;
export type ISPHttpClientOptions = any;
export type SPHttpClientResponse = any;
export class SPHttpClient {
public static readonly configurations: any;
public async fetch(url: string, configuration: SPHttpClientConfiguration, options: ISPHttpClientOptions): Promise<SPHttpClientResponse> {
return null;
}
public async get(url: string, configuration: SPHttpClientConfiguration, options?: ISPHttpClientOptions): Promise<SPHttpClientResponse> {
return null;
}
public async post(url: string, configuration: SPHttpClientConfiguration, options: ISPHttpClientOptions): Promise<SPHttpClientResponse> {
return null;
}
}