Helper to define a lazily loaded module body with an eager requires/provides spec.
The spec is available without importing the chunk (dependency ordering happens before
code-splitting resolves) and the loaded default export is type-checked against it. The
returned Module is opaque with respect to requires/provides/props, parameterized
only by Options — this is what eliminates TS2883 at every call site.
The lazy pairing of makeModule.
Helper to define a lazily loaded module body with an eager requires/provides spec. The spec is available without importing the chunk (dependency ordering happens before code-splitting resolves) and the loaded default export is type-checked against it. The returned Module is opaque with respect to requires/provides/props, parameterized only by
Options— this is what eliminates TS2883 at every call site. The lazy pairing of makeModule.