This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Merged
Conversation
| @@ -1,268 +0,0 @@ | |||
| # Introduction | |||
Member
There was a problem hiding this comment.
There needs to be some sort of redirect here
| You can also created nested namespaces in one declaration: | ||
|
|
||
| ```ts | ||
| declare namespace GreetingLib.Options { |
Member
There was a problem hiding this comment.
I thought this was an anti-pattern.
| the [Deep Dive](./Deep Dive.md) section explains many advanced concepts in declaration writing, | ||
| and shows how to leverage these concepts to create cleaner and more intuitive declaration files. | ||
|
|
||
| ## `/templates` |
Member
There was a problem hiding this comment.
Is this even going to work on the website?
Contributor
Author
There was a problem hiding this comment.
i added a task to copy the templates.
Contributor
Author
There was a problem hiding this comment.
the folder link does not seem to work now that you mention it
Contributor
Author
There was a problem hiding this comment.
probably should remove it.
pages/declaration files/Deep Dive.md
Outdated
|
|
||
| ```ts | ||
| export var SomeVar: { a: SomeType }; | ||
| export interface SomeVar { |
There was a problem hiding this comment.
This should be export interface SomeType, isn't it?
pages/Writing Declaration Files.md
Outdated
|
|
||
| Please post a comment [here](https://github.com/Microsoft/TypeScript-Handbook/issues) if there's a pattern you'd like to see documented! | ||
| We'll add to this as we can. | ||
| > ## This page moved to [Publishing](./declaration files/Introduction.md) No newline at end of file |
Member
|
Seems decent 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding @RyanCavanaugh's documentation for writing declaration files.