1- import * as react_jsx_runtime from 'react/jsx-runtime' ;
2- import React from 'react' ;
1+ import React from "react" ;
32import { Config } from 'js-config-helper' ;
43import { AxiosInstance } from 'axios' ;
5- import { Form } from ' js-form-helper' ;
4+ import { Form } from " js-form-helper" ;
65import i18next , { InitOptions , TFunction } from 'i18next' ;
7-
8- interface UpOptions {
6+ export interface UpOptions {
97 debug ?: boolean ;
108 project ?: {
119 name : string ;
@@ -26,7 +24,7 @@ interface UpOptions {
2624 loading ?: boolean ;
2725 setLoading ?: ( loading : boolean ) => void ;
2826}
29- interface exportedVars {
27+ export interface exportedVars {
3028 config : Config ;
3129 api : AxiosInstance ;
3230 http : AxiosInstance ;
@@ -36,31 +34,29 @@ interface exportedVars {
3634 graphqlClient : any ;
3735 t : TFunction ;
3836}
39- declare let exported : exportedVars | any ;
40- declare let UpInit : boolean ;
37+ export declare let exported : exportedVars | any ;
38+ export declare let UpInit : boolean ;
4139/**
4240 * Setup
4341 *
4442 * @param options
4543 */
46- declare const setUp : ( options : UpOptions ) => Promise < any > ;
44+ export declare const setUp : ( options : UpOptions ) => Promise < any > ;
4745/**
4846 * useUp helper function
4947 *
5048 */
51- declare const useUp : ( ) => exportedVars ;
52- interface Props {
49+ export declare const useUp : ( ) => exportedVars ;
50+ export interface Props {
5351 options : UpOptions ;
5452 children ?: React . ReactNode ;
5553}
56- declare const UpContext : React . Context < { } > ;
54+ export declare const UpContext : React . Context < { } > ;
5755/**
5856 * UpProvider should be wrapped in the early stage of your app
5957 *
6058 * @param options
6159 * @param children
6260 * @constructor
6361 */
64- declare function UpProvider ( { options, children } : Props ) : react_jsx_runtime . JSX . Element ;
65-
66- export { type Props , UpContext , UpInit , type UpOptions , UpProvider , exported , type exportedVars , setUp , useUp } ;
62+ export declare function UpProvider ( { options, children } : Props ) : import ( "react/jsx-runtime" ) . JSX . Element ;
0 commit comments