Comments (2)
This is really broad issue, and would be hard to tackle as a whole.
Actually your example works already:
export const a = "a";
Will get you a variable named a
with a type of "a"
. The tests for it are here: https://github.com/denoland/deno_doc/blob/main/src/tests.rs#L1317
Non-simple types are not currently supported. I was going to open up some issues to infer types for specific structures. There is already a request at #92 for object literals.
So my opinion is that this issue is to broad and unactionable.
from deno_doc.
As mentioned, I have opened up other issues that are more narrow with specific cases we can try to tackle. I am going to close this in lieu of those other issues.
from deno_doc.
Related Issues (20)
- Use tailwind
- dark-mode
- resolve global symbols
- refactor to just use templates
- support mobile
- property drilldown
- Make $ deno doc --html read/resolve .js imports from .ts files if .js files dont exist
- Show default exports HOT 2
- [HTML] Parameters and properties type not added to doc HOT 5
- Generates incorrect type assignment HOT 1
- Isn't able to parse the types from https://doc.deno.land/https://esm.sh/v128/@types/[email protected]/index.d.ts
- Render properties of interface-like type aliases to be like the interface HOT 1
- `deno doc --lint` doesn't recognise JSDoc description if preceded by `@deprecation` HOT 1
- code highlighting
- fix handling of aliases imports and exports HOT 1
- html output handle import of namespace and element usage
- `deno doc --lint` should not have diagnostic for type that is exported via type alias
- html: match js implementation
- class expressions are not supported
- Fix missing `deno doc --lint` diagnostics for missing explicit types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deno_doc.