Skip to content

Conversation

@cromery
Copy link
Contributor

@cromery cromery commented Dec 16, 2025

Wanted to try out Shielding, but was not possible to import with our typescript setup.

Replaced top-level import with inline import() and a triple-slash reference to keep the file ambient. This aligns with other fastly:* declarations and resolves consumer import failure.

Added a tsd test to make sure the module resolves correctly.

Complied and installed it from the local package to our main compute application. Ran it locally (without shielding) as well as deployed to our preprod environment with shielding, works well.

Replaced top-level import with inline import() and a triple-slash
reference to keep the file ambient. This aligns with other fastly:*
declarations and resolves consumer import failure.
@cromery cromery force-pushed the fix/shielding-module branch from ca39eb6 to fae2eb8 Compare December 16, 2025 15:34
@cromery cromery marked this pull request as ready for review December 16, 2025 15:38
@cromery cromery changed the title Fix: type imports in shielding.d.ts Fix: make shielding.d.ts ambient Dec 16, 2025
@TartanLlama
Copy link
Contributor

Thank you!

@TartanLlama TartanLlama enabled auto-merge (squash) December 17, 2025 11:18
@TartanLlama TartanLlama merged commit 7a0e987 into fastly:main Dec 17, 2025
17 of 26 checks passed
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.

2 participants