Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: "Try it yourself" example of d.ts declaration usage doesn't work. #2764

Closed
LeonardoDaLuz opened this issue Mar 29, 2023 · 2 comments
Closed

Comments

@LeonardoDaLuz
Copy link

LeonardoDaLuz commented Mar 29, 2023

"Try it yourself" example of d.ts declaration usage doesn't work.

https://www.typescriptlang.org/docs/handbook/declaration-files/templates/module-d-ts.html

image

I don't know how to fix it as I'm trying to learn but the docs aren't clear. It doesn't work for me, and the example running on the site doesn't either.

@LeonardoDaLuz LeonardoDaLuz changed the title Docs: "Try yourself" example of d.ts declaration usage doesn't work. Docs: "Try it yourself" example of d.ts declaration usage doesn't work. Mar 29, 2023
@orta
Copy link
Contributor

orta commented Mar 30, 2023

The example is to show how the .d.ts file works - if you click on ".d.ts" tab in the sidebar, you can see how it works.

If you'd like to add a type to the arr, that'd be a good PR to send

@typescript-bot
Copy link
Collaborator

Hello! As per #2804, we are automatically closing all open issues. Please see #2804 for a description of what issues and PRs can be accepted going forward.

@typescript-bot typescript-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2023
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

No branches or pull requests

3 participants