-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Update or remove ts-jsdoc #10455
Comments
I captured the warnings in a file to evaluate. There are 1234 warnings, and 1230 of them are "Failed to find parent of doclet...". I think this is a known issue with the tsd-jsdoc plugin. The plugin repo seems to be dead. I think we might be better off switching to typescript itself to generate the type definitions. Typescript added this functionality shortly after the tsd-jsdoc plugin was developed. My first quick test of the typescript compiler is throwing a few errors about "requires using private name from module". This may be worth another look when we have time. |
While declare const _default: Readonly<{
/**
* Straight line that does not conform to the surface of the ellipsoid.
*
* @type {Number}
* @constant
*/
NONE: number;
/**
* Follow geodesic path.
*
* @type {Number}
* @constant
*/
GEODESIC: number;
/**
* Follow rhumb or loxodrome path.
*
* @type {Number}
* @constant
*/
RHUMB: number;
}>;
export default _default; If I go from: export default Object.freeze(ArcType); to export default ArcType; then I lose documentation for the enum values: export default ArcType;
/**
* ArcType defines the path that should be taken connecting vertices.
*/
type ArcType = number;
declare namespace ArcType {
const NONE: number;
const GEODESIC: number;
const RHUMB: number;
} This is with |
The JSDoc to |
ts-jsdoc is also stopping us from updating our version of |
As part of the build process, CesiumJS generates TypeScript definitions based off our jsdoc comments.
While we're generally pretty meticulous about having accurate documentation, there are a few instances of invalid jsdoc that have slipped through. The
build-ts
scripts, which converts our jsdoc to TypeScript definitions, has recently been spitting out a ton of warnings indicating probable issues with our meta tags.There is a helpful list of common pitfalls the link above, including:
This list likely covers most of the warnings. We should fix theses to ensure we have accurate documentation and accurate TYpeScript definitions.
The text was updated successfully, but these errors were encountered: