Closed alexprey closed 3 years ago
After check the typings file, I found that it has wrong specification of slot parameters. So, it should be reworked. Thats why I mark this issue with braking label.
How it now:
export interface IScopedCommentItem {
description?: string | null;
visibility?: JSVisibilityScope;
keywords?: JSDocKeyword[];
}
export interface ISvelteItem extends IScopedCommentItem {
name: string;
locations?: SourceLocation[];
}
export interface SvelteSlotParameter extends ISvelteItem {}
But should be like following structure:
export interface SvelteSlotParameter {
name: string;
type: JSDocType;
description?: string;
locations?: SourceLocation[];
}
Look at the following examples:
In output for slot property we have only name, but ignore any description and type reading for that.
Actual output
Expected output
Techinical details
Changes for this fix corelated with #47 issue. The issue #47 already has changes that will be merged soon, please start fix from branching on following commit: https://github.com/alexprey/sveltedoc-parser/commit/9a7bfc4b4b6d13e75a0ee294bf24040262d0e426