Skip to content

Commit

Permalink
fix: oss config typings (#2277)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 authored Aug 29, 2022
1 parent 1c47338 commit f62e42a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages-serverless/faas-typings/typings/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,13 @@ export interface FaaSHTTPContext
extends ContextDelegatedRequest,
ContextDelegatedResponse {
/**
* Alias to this.request
* It's a http request mock object, please don't use it directly.
*/
req: FaaSHTTPRequest;
req: any;
/**
* Alias to this.Response
* It's a http response mock object, please don't use it directly.
*/
res: FaaSHTTPResponse;
res: any;
/**
* FaaS http request object
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/oss/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as OSS from 'ali-oss';
import { OSSServiceFactoryCreateClientConfigType } from './dist';

export * from './dist/index';

declare module '@midwayjs/core/dist/interface' {
interface MidwayConfig {
oss?: ServiceFactoryConfigOption<OSS.STSOptions | OSS.Options>;
oss?: ServiceFactoryConfigOption<OSSServiceFactoryCreateClientConfigType>;
}
}

0 comments on commit f62e42a

Please sign in to comment.