Skip to content

Fix the renderSingleFrame type on the default export - #336

Open
akzarma wants to merge 1 commit into
mifi:masterfrom
akzarma:fix/editly-326-render-single-frame-types
Open

akzarma wants to merge 1 commit into
mifi:masterfrom
akzarma:fix/editly-326-render-single-frame-types

Conversation

@akzarma

@akzarma akzarma commented Nov 21, 2026

Copy link
Copy Markdown

Closes #326.

The declaration bundle can infer the static property from itself and fail with TS2502 when checking dependencies. Attach the same function through Object.assign so the exported value is still the same callable with the same property, but its declaration uses an intersection type.

Validation: Reproduced TS2502 in the published 0.15.0-rc.1 declaration and a fresh build with pkgroll 2.6.1. With the patch, a TypeScript 5.9.3 consumer with skipLibCheck disabled compiled against the generated package, exercising the named and static renderSingleFrame exports and the default callable. The focused test pinned gl-transitions to the repository’s declared minimum 1.43.0 in the local test environment to isolate the declaration bug. No test-only shim or dependency change was committed. Native render tests were not run.

Prepared and tested with AI assistance.

@akzarma
akzarma force-pushed the fix/editly-326-render-single-frame-types branch from a2dc162 to 27eba96 Compare November 21, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeScript 'renderSingleFrame' is referenced directly or indirectly in its own type annotation.

1 participant