#TypeScript #JavaScript #WebDev #Programming #Coding
#TypeScript #JavaScript #WebDev #Programming #Coding
1. "Typescript" but it's just JSDoc comments but it still reports errors with `tsc`
2. on a custom Javascript runtime (BoaJS + my incremental extensions, also typed)
3. with absolutely no third-party JS packages (i wrote a small templating library […]
1. "Typescript" but it's just JSDoc comments but it still reports errors with `tsc`
2. on a custom Javascript runtime (BoaJS + my incremental extensions, also typed)
3. with absolutely no third-party JS packages (i wrote a small templating library […]
https://github.com/mastodon/mastodon/pull/40817
https://github.com/mastodon/mastodon/pull/40817
What do you find useful about it?
What do you find useful about it?
- can't get out of sync
- gives you suggestions in code
I'll see if we can make the rendered output better though, thanks for the feedback 🙏
- can't get out of sync
- gives you suggestions in code
I'll see if we can make the rendered output better though, thanks for the feedback 🙏
還有個隱藏款:c程式碼沒有固定的架構(頂多就是順手寫個JSDoc,雖然對如果只有自己維護+給使用者API介面,這樣就差不多了,但還是進步了業界)
還有個隱藏款:c程式碼沒有固定的架構(頂多就是順手寫個JSDoc,雖然對如果只有自己維護+給使用者API介面,這樣就差不多了,但還是進步了業界)
interface FunName {
/*
* @param arg1
/*
(arg1:type): returnType
}
And when you return this interface from anywhere, the JSDoc comment will show
interface FunName {
/*
* @param arg1
/*
(arg1:type): returnType
}
And when you return this interface from anywhere, the JSDoc comment will show
Godd the jsdoc situation is always a mess with claude
Godd the jsdoc situation is always a mess with claude
I want something like this:
/**
* ```js
* /* This is a comment inside a code block inside a comment */
* ```
*/
It only has to work for TypeScript, not every JSDoc tool out there.
I want something like this:
/**
* ```js
* /* This is a comment inside a code block inside a comment */
* ```
*/
It only has to work for TypeScript, not every JSDoc tool out there.
.doc:after {
content: '*/';
}
I don’t want that to break the JSDoc comment it will be embedded inside of.
.doc:after {
content: '*/';
}
I don’t want that to break the JSDoc comment it will be embedded inside of.
Go To Definition for JSDoc — jump to {@link} symbols in VS Code without adding throwaway imports. laststance.io/articles/Go-...
Go To Definition for JSDoc — jump to {@link} symbols in VS Code without adding throwaway imports. laststance.io/articles/Go-...
This might mean some of the pages will temporarily have less information than before.
If you see something that doesn't look right, please reach out and/or file a PR 🙏
This might mean some of the pages will temporarily have less information than before.
If you see something that doesn't look right, please reach out and/or file a PR 🙏
I have a typedef for a subset of properties. I want to create another typedef for those properties plus others. Zed insists on giving it an 'any' type, apparently? Or I am doing something wrong?
I have a typedef for a subset of properties. I want to create another typedef for those properties plus others. Zed insists on giving it an 'any' type, apparently? Or I am doing something wrong?
Check out @stuffbreaker.bsky.social's WC Toolkit that can take no-build JSDoc annotations (or TypeScript types) to output type defs in the form of Custom Elements Manifest which has support in various IDEs:
wc-toolkit.com
Check out @stuffbreaker.bsky.social's WC Toolkit that can take no-build JSDoc annotations (or TypeScript types) to output type defs in the form of Custom Elements Manifest which has support in various IDEs:
wc-toolkit.com
The TS lang server is where the value resides and it is perfectly capable of consuming standard JSDoc type comments.
The TS lang server is where the value resides and it is perfectly capable of consuming standard JSDoc type comments.
I made the decision to cut out TS (excluding `.d.ts` files, they get a pass) from all my personal projects years ago and I'm still very much convinced that's the right move. TS as an authoring format ain't it.
I made the decision to cut out TS (excluding `.d.ts` files, they get a pass) from all my personal projects years ago and I'm still very much convinced that's the right move. TS as an authoring format ain't it.