sveld 0.38.5 → 0.38.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser.d.ts +15 -9
- package/browser.js +136 -170
- package/chunk-60yq13dk.js +1 -0
- package/chunk-gg5d8z19.js +40 -0
- package/chunk-nfwzp0b2.js +189 -0
- package/chunk-qqhje1j7.js +5 -0
- package/cli-entry.js +2 -2
- package/index.d.ts +26 -12
- package/index.js +1 -1
- package/package.json +1 -1
- package/schema/component-api.schema.json +1 -1
- package/chunk-an5rdwgz.js +0 -234
- package/chunk-f31zr5zg.js +0 -5
- package/chunk-g1rqx8nx.js +0 -29
- package/chunk-y50sqsxa.js +0 -1
package/browser.d.ts
CHANGED
|
@@ -181,9 +181,12 @@ interface ComponentPropReExport {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
interface ComponentClassMember {
|
|
184
|
-
/**
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
/**
|
|
185
|
+
* `"property"` covers fields, constructor parameter properties, and getter/setter pairs;
|
|
186
|
+
* `"index"` is an index signature (`[key: string]: unknown`).
|
|
187
|
+
*/
|
|
188
|
+
kind: "constructor" | "method" | "property" | "index";
|
|
189
|
+
/** Member name; `"constructor"` for the constructor, the bracketed key (`[key: string]`) for an index signature. */
|
|
187
190
|
name: string;
|
|
188
191
|
/** Property type text; `"any"` when neither TypeScript nor JSDoc types it. */
|
|
189
192
|
type?: string;
|
|
@@ -476,6 +479,7 @@ interface ParsedComponent {
|
|
|
476
479
|
diagnostics?: SveldDiagnostic[];
|
|
477
480
|
/** Writer-only TypeScript metadata. Not serialized to JSON. */
|
|
478
481
|
[PARSED_COMPONENT_TYPE_SCRIPT_METADATA]?: ParsedComponentTypeScriptMetadata;
|
|
482
|
+
[PARSED_COMPONENT_PROP_IGNORES]?: Record<string, string[]>;
|
|
479
483
|
}
|
|
480
484
|
|
|
481
485
|
export type SveldDiagnosticKind = "prop-unknown-type" | "context-any-type" | "slot-missing-type" | "slot-not-rendered" | "event-no-source" | "dispatch-escapes" | "example-compile-error" | "example-syntax-error" | "syntax-skipped" | "type-syntax-error" | "rest-props-unresolved" | "context-duplicate-key" | "context-key-unresolved" | "context-value-unresolved" | "spread-unresolved" | "export-unresolved" | "module-export-conflict" | "extend-props-target-missing" | "extend-props-duplicate" | "extend-props-override" | "jsdoc-unknown-tag" | "typedef-duplicate" | "property-duplicate" | "generics-conflict" | "event-description-ambiguous" | "jsdoc-tag-dropped" | "internal-typedef-referenced" | "cross-file-unresolved" | "export-ambiguous";
|
|
@@ -508,6 +512,8 @@ export interface SveldDiagnostic {
|
|
|
508
512
|
|
|
509
513
|
declare const PARSED_COMPONENT_TYPE_SCRIPT_METADATA: unique symbol;
|
|
510
514
|
|
|
515
|
+
declare const PARSED_COMPONENT_PROP_IGNORES: unique symbol;
|
|
516
|
+
|
|
511
517
|
export interface FinalizeWithoutCrossFileResolutionOptions {
|
|
512
518
|
/** Path recorded on the new diagnostics. Defaults to the component's own `filePath`, if it has one. */
|
|
513
519
|
filePath?: string;
|
|
@@ -602,6 +608,12 @@ export declare class BrowserWriterMarkdown extends MarkdownDocument {
|
|
|
602
608
|
|
|
603
609
|
export type MarkdownWriterBase = MarkdownDocument;
|
|
604
610
|
|
|
611
|
+
export interface WriteMarkdownCoreOptions {
|
|
612
|
+
onAppend?: (type: AppendType, document: MarkdownDocument, components: ComponentDocs) => void;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export declare function writeMarkdownCore(components: ComponentDocs, options?: WriteMarkdownCoreOptions): string;
|
|
616
|
+
|
|
605
617
|
export declare function formatTsProps(props?: string): string;
|
|
606
618
|
|
|
607
619
|
export declare function getTypeDefs(def: Pick<ComponentDocApi, "typedefs">): string;
|
|
@@ -627,9 +639,3 @@ interface MarkdownRenderTarget {
|
|
|
627
639
|
}
|
|
628
640
|
|
|
629
641
|
export declare function renderComponentsToMarkdown(document: MarkdownRenderTarget, components: ComponentDocs, entryExports?: EntryExports): void;
|
|
630
|
-
|
|
631
|
-
export interface WriteMarkdownCoreOptions {
|
|
632
|
-
onAppend?: (type: AppendType, document: MarkdownDocument, components: ComponentDocs) => void;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
export declare function writeMarkdownCore(components: ComponentDocs, options?: WriteMarkdownCoreOptions): string;
|