We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flow is unable to retrieve the types if i import the functions like this: import {api} from '@contactlab/appy'
import {api} from '@contactlab/appy'
But works if the import is written like this: import api from '@contactlab/appy/dist/api'
import api from '@contactlab/appy/dist/api'
The text was updated successfully, but these errors were encountered:
@Arual90 let's try something like:
// src/api/index.js // ---------------- // ... export type Config = {| ... export type ApiFn = (m: Method, a: string, t: string, b: ?RequestOptions) ... // ... // src/index.js // ---------------- // ... import type {Config, ApiFn} from './api'; import type {RequestFn} from './request'; import request from './request'; import api from './api'; interface Appy { request: RequestFn; api: (config: Config) => ApiFn; } export default ({ request, api }: Appy);
Sorry, something went wrong.
#5 declared types of main export
cd1e32d
74cb70b
Arual90
No branches or pull requests
Flow is unable to retrieve the types if i import the functions like this:
import {api} from '@contactlab/appy'
But works if the import is written like this:
import api from '@contactlab/appy/dist/api'
The text was updated successfully, but these errors were encountered: