@ywfe/fe-tools 1.2.0 → 1.2.1-beta.1

Sign up to get free protection for your applications and to get access to all the features.
package/index.ts CHANGED
@@ -1 +1,2 @@
1
+ export { default as request } from './request'
1
2
  export { default as userInputToJson } from './userInputToJson'
package/lib/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ export { default as request } from './request';
1
2
  export { default as userInputToJson } from './userInputToJson';
@@ -0,0 +1,9 @@
1
+ interface RequestOptions {
2
+ url: string;
3
+ method?: string;
4
+ params?: any;
5
+ }
6
+ declare function request({ input }: {
7
+ input: RequestOptions;
8
+ }): Promise<any>;
9
+ export default request;
@@ -4,5 +4,5 @@ interface userInput {
4
4
  }
5
5
  declare function userInputToJson({ input }: {
6
6
  input: userInput;
7
- }): Promise<string>;
7
+ }): Promise<any>;
8
8
  export default userInputToJson;