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
I want to expose some of my TS-classes to 'window' but I have no idea how to automate this process with expose-loader...
At the moment I'm doing it manually like so: (exports.ts) (just in case someone else has the same problem...)
import { Name as NameToExport } from "./address/Name"; import { addValues as addValuesToExport, sayMyName as sayMyNameToExport, } from "./index"; declare global { namespace MyLib { export type Name = NameToExport; export const Name: typeof NameToExport; export const addValues: typeof addValuesToExport; export const sayMyName: typeof sayMyNameToExport; } } (window as any).MyLib = { Name: NameToExport, addValues: addValuesToExport, sayMyName: sayMyNameToExport, };
I'm using webpack 4 and TS 3
The text was updated successfully, but these errors were encountered:
Is not implemented yes, will be part of the next release
Sorry, something went wrong.
Fixed, but you need to specify custom custom-type-definitions-to-a-third-party-library in your application manually , here examples https://www.detroitlabs.com/blog/2018/02/28/adding-custom-type-definitions-to-a-third-party-library/
No branches or pull requests
I want to expose some of my TS-classes to 'window' but I have no idea how to automate this process with expose-loader...
At the moment I'm doing it manually like so: (exports.ts)
(just in case someone else has the same problem...)
I'm using webpack 4 and TS 3
The text was updated successfully, but these errors were encountered: