Skip to content

fix: include Temporal types in deno types output#32952

Merged
bartlomieju merged 1 commit intodenoland:mainfrom
bartlomieju:fix/deno-types-temporal
Mar 25, 2026
Merged

fix: include Temporal types in deno types output#32952
bartlomieju merged 1 commit intodenoland:mainfrom
bartlomieju:fix/deno-types-temporal

Conversation

@bartlomieju
Copy link
Copy Markdown
Member

Summary

Add "esnext.temporal" to the lib_names list in get_types_declaration_file_text() so that deno types emits the Temporal namespace declarations from TypeScript's lib.esnext.temporal.d.ts.

This was accidentally removed in #32656 (typescript-go update) which dropped the "deno.temporal" entry added by #32571. Since deno types does flat concatenation (doesn't follow /// <reference> chains), the Temporal types were silently lost from the output, breaking docs generation at docs.deno.com.

Closes #32950

Test plan

# Before: no output
deno types | grep "declare namespace Temporal"

# After:
deno types | grep "declare namespace Temporal"
# declare namespace Temporal {

🤖 Generated with Claude Code

Add "esnext.temporal" to the lib_names list in
get_types_declaration_file_text() so that `deno types` emits the
Temporal namespace declarations from TypeScript's
lib.esnext.temporal.d.ts.

This was accidentally removed in denoland#32656 (typescript-go update) which
dropped the "deno.temporal" entry added by denoland#32571. Since deno types
does flat concatenation (doesn't follow /// <reference> chains), the
Temporal types were silently lost from the output.

Closes denoland#32950

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bartlomieju bartlomieju changed the title fix(cli): include Temporal types in deno types output fix: include Temporal types in deno types output Mar 25, 2026
@bartlomieju bartlomieju merged commit 460cca9 into denoland:main Mar 25, 2026
113 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.

deno types does not emit Temporal namespace declarations

1 participant