@wp-typia/project-tools 0.15.1 → 0.15.3

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.
@@ -1,53 +1,7 @@
1
- import ts from "typescript";
2
- import { type AnalysisContext } from "./metadata-analysis.js";
3
- import { type AttributeNode } from "./metadata-model.js";
4
1
  /**
5
- * Analyze one named source type from a TypeScript module.
6
- *
7
- * @param options Metadata analysis options including the project root, source
8
- * type name, and types file path.
9
- * @returns The resolved project root plus the parsed root attribute node for
10
- * the requested source type.
2
+ * Re-exports metadata parser utilities from `@wp-typia/block-runtime`.
3
+ * This adapter keeps the public project-tools runtime path stable while the
4
+ * implementation is consolidated in block-runtime.
5
+ * @module
11
6
  */
12
- export declare function analyzeSourceType(options: {
13
- projectRoot?: string;
14
- sourceTypeName: string;
15
- typesFile: string;
16
- }): {
17
- projectRoot: string;
18
- rootNode: AttributeNode;
19
- };
20
- /**
21
- * Analyze multiple named source types from a TypeScript module.
22
- *
23
- * @param options Metadata analysis options including the optional project root
24
- * and the relative types file path to parse.
25
- * @param sourceTypeNames Exported type or interface names to resolve from the
26
- * configured types file.
27
- * @returns A record keyed by source type name with parsed attribute-node trees
28
- * for each requested type.
29
- */
30
- export declare function analyzeSourceTypes(options: {
31
- projectRoot?: string;
32
- typesFile: string;
33
- }, sourceTypeNames: string[]): Record<string, AttributeNode>;
34
- /**
35
- * Parse an interface or type alias declaration into one attribute-node tree.
36
- *
37
- * @param declaration TypeScript declaration node to parse.
38
- * @param ctx Shared analysis context used for type resolution and recursion
39
- * detection.
40
- * @param pathLabel Human-readable path label for diagnostics.
41
- * @param required Whether the resulting node should be marked as required.
42
- * @returns The parsed attribute-node representation for the declaration.
43
- */
44
- export declare function parseNamedDeclaration(declaration: ts.InterfaceDeclaration | ts.TypeAliasDeclaration, ctx: AnalysisContext, pathLabel: string, required: boolean): AttributeNode;
45
- /**
46
- * Parse one TypeScript type node into the internal metadata model.
47
- *
48
- * @param node TypeScript AST node describing the source type shape.
49
- * @param ctx Shared analysis context used for symbol and type resolution.
50
- * @param pathLabel Human-readable path label used in parse errors and warnings.
51
- * @returns The parsed attribute-node representation of the provided type node.
52
- */
53
- export declare function parseTypeNode(node: ts.TypeNode, ctx: AnalysisContext, pathLabel: string): AttributeNode;
7
+ export * from "@wp-typia/block-runtime/metadata-parser";