@ywfe/fe-tools 1.0.2-beta.11 → 1.0.2-beta.12

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