-
-
Notifications
You must be signed in to change notification settings - Fork 16
Move "types" into the package #55
New issue
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
Conversation
Hey :)
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { Application } from "@hotwired/stimulus";
export declare function startStimulusApp(context?: __WebpackModuleApi.RequireContext): Application;
|
Would it make sense to write this whole package in Typescript too, which would avoid the need for a types file? |
@tgalopin
/edit I'am confused, just checked the source, and it is already ts. 😄 What we could do is, set this to true Line 14 in e3b6d09
and reference the output .d.ts in the package.json instead. /edit Also this can be typed Line 20 in e3b6d09
__WebpackModuleApi.RequireContext from @types/webpack-env
|
Ah right, I mixed things up, this package is already TS. Let's finalize this PR then! |
When I output all of the .d.ts files locally, it creates (of course ) .d.ts files or ALL of the files. Do we want to do that? Really, only the |
Any news about this PR ? Having the types inside the package would be great. |
33c8c96
to
76f8a63
Compare
@chapterjason can you have a look now? The only weird part is that, while you can build the types with |
@weaverryan LGTM In the end it's just javascript and the method is theoretically still loadable and useable. If you import |
Ahh I forgot, we also could add a short script in the |
76f8a63
to
28380e1
Compare
28380e1
to
f5224ae
Compare
Fixes #39
Instead of having a separate
@symfony/stimulus-bridge-types
package, it's easier (both for us but mostly for users) to embed it directly in the package.Cheers!