Matt Sutton
Matt Sutton
> the typescript manual still explicitly says "don't do this," is why i'm dragging my heels Forgive if it's on page one lol.... could you point us to that?
I'll have to dig in at it more later, but, early feedback, no dice:
This seems to help: https://stackoverflow.com/a/77566206 When I edit your `package.json` to this -- we seem closer: ``` "exports": { "require": "./dist/jssm.es5.cjs", "import": { "types": "./jssm.d.ts", (or "./dist/es6/jssm.d.ts") "default": "./dist/jssm.es6.mjs" },...
~I think it may need a distinct `.d.mts` to be proper, tho it seems to be resolving the explicitly set `.d.ts` even though I see reports of mismatch there being...
> "Funnily", though, all this breaks some typing for me that works fine with my patch. Specifically, the data payload in callbacks. I'm pretty sure this is back to the...
@StoneCypher just checking back, any verdict? I'm going to have to ship imminently. I can fork and add my own version as dep I spose to buy more time.
I have it in usage with a fork at this point. It's 183e72178c96e1cccfefa939dcf7cd2fc4251448 (this change) and https://github.com/mhsdef/jssm/commit/c3510f481bfcc0b7acf1b9ab59a9ebac598b6555 (`npm run typescript`).
> The changes to the .ts files look good. But there aren't extensions added to the imports in .d.ts files. @StoneCypher could chime in here authoritatively, but, I think that's...
Yeah, we're going to need libcurl too for heavy adoption in WPVIP.
Yeah, this was one of the first things I tried, and I ran into this. `wp-content` with just a `plugins` directory. I like option two in UX. Mount what you...