Skip to content

Copying documentation from lib.dom.d.ts to dart #22948

@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


One thing I would like to see, is having the dom api's being documentated in the dart language. Of course, mdn is a great source, but personally I do much coding offline in the train, and even if I'm online, I love the ability to having the documentation and the code side by side in the IDE, instead of googling everything.

Now, I see that typescript has also started the task of documentating the dom apis. Just like for dart:html, it isn't complete, but it has a bit more covered currently I think. See the screenshot for an example.

This is the file that typescript uses: https://github.com/Microsoft/TypeScript/blob/master/bin/lib.dom.d.ts
I think about copying the typescript documentation into the dart sdk, if this is legally possible. I think about doing it by hand, as it would probably be great for learning more about the dom APIs.

I've read this: https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
which doesn't seem that difficult.

Would you guys appreciate a documentation pull request where I use the documentation from https://github.com/Microsoft/TypeScript/blob/master/bin/lib.dom.d.ts ?


Attachment:
documentation.png (57.27 KB)

Metadata

Metadata

Assignees

Labels

area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.library-htmllibrary-web-audiotype-documentationA request to add or improve documentationweb-librariesIssues impacting dart:html, etc., libraries

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions