@synap-core/api-types 1.0.34 → 1.0.39

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/dist/index.d.ts CHANGED
@@ -3,21 +3,8 @@
3
3
  *
4
4
  * Standalone type definitions for Synap tRPC API.
5
5
  *
6
- * This package bundles types from @synap/api at build time using API Extractor.
7
- * The published package has NO runtime dependencies on @synap/api.
8
- *
9
- * Build Flow:
10
- * 1. TypeScript compiles and generates dist/index.d.ts with type reference
11
- * 2. API Extractor reads the reference and finds @synap/api in bundledPackages
12
- * 3. API Extractor INLINES the full AppRouter type definition
13
- * 4. Published package contains complete types, NO external references
14
- *
15
- * @example
16
- * ```typescript
17
- * import type { AppRouter } from '@synap-core/api-types';
18
- *
19
- * const trpc = createTRPCReact<AppRouter>();
20
- * ```
6
+ * The AppRouter type is extracted from @synap/api during build
7
+ * and included in this package with no external dependencies.
21
8
  */
22
- export type { AppRouter } from '@synap-core/api';
9
+ export type { AppRouter } from '@synap/api';
23
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synap-core/api-types",
3
- "version": "1.0.34",
3
+ "version": "1.0.39",
4
4
  "description": "Type definitions for Synap API Router - tRPC types for frontend",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,16 +17,16 @@
17
17
  "src"
18
18
  ],
19
19
  "scripts": {
20
- "build": "tsc",
20
+ "build": "tsc && node scripts/build.mjs",
21
21
  "clean": "rm -rf dist",
22
22
  "typecheck": "tsc --noEmit"
23
23
  },
24
24
  "dependencies": {
25
- "@synap-core/api": "^1.0.2",
26
25
  "@synap-core/types": "workspace:*"
27
26
  },
28
27
  "devDependencies": {
29
28
  "@microsoft/api-extractor": "^7.55.2",
29
+ "@synap/api": "workspace:*",
30
30
  "@trpc/server": "^11.8.1",
31
31
  "typescript": "^5.9.3"
32
32
  },
package/src/index.ts CHANGED
@@ -3,22 +3,9 @@
3
3
  *
4
4
  * Standalone type definitions for Synap tRPC API.
5
5
  *
6
- * This package bundles types from @synap/api at build time using API Extractor.
7
- * The published package has NO runtime dependencies on @synap/api.
8
- *
9
- * Build Flow:
10
- * 1. TypeScript compiles and generates dist/index.d.ts with type reference
11
- * 2. API Extractor reads the reference and finds @synap/api in bundledPackages
12
- * 3. API Extractor INLINES the full AppRouter type definition
13
- * 4. Published package contains complete types, NO external references
14
- *
15
- * @example
16
- * ```typescript
17
- * import type { AppRouter } from '@synap-core/api-types';
18
- *
19
- * const trpc = createTRPCReact<AppRouter>();
20
- * ```
6
+ * The AppRouter type is extracted from @synap/api during build
7
+ * and included in this package with no external dependencies.
21
8
  */
22
9
 
23
- // Now references published @synap-core/api package on npm
24
- export type { AppRouter } from '@synap-core/api';
10
+ // This will be generated during build from @synap/api
11
+ export type { AppRouter } from '@synap/api';