@openpkg-ts/spec 0.44.0 → 0.46.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +9 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -198,6 +198,7 @@ type SpecTypePredicate = {
198
198
  * | `x-ts-type-arguments`| Preserves generic type arguments for parameterized types |
199
199
  * | `x-ts-type-predicate`| Preserves type guard narrowing information |
200
200
  * | `x-ts-package` | Package name for external type references |
201
+ * | `x-ts-method` | Marks function-valued properties declared with method syntax |
201
202
  */
202
203
  type JSONSchemaExtensions = {
203
204
  /**
@@ -235,6 +236,13 @@ type JSONSchemaExtensions = {
235
236
  * Example: AnyRouter from @trpc/server → { "$ref": "#/types/AnyRouter", "x-ts-package": "@trpc/server" }
236
237
  */
237
238
  "x-ts-package"?: string;
239
+ /**
240
+ * Marks a function-valued property declared with method syntax
241
+ * (`run(cmd: string): void`) as opposed to a function-typed property
242
+ * (`walk: () => void`). Mapped members (Omit/Pick) lose method form;
243
+ * this preserves the checker's distinction for doc pipelines.
244
+ */
245
+ "x-ts-method"?: boolean;
238
246
  };
239
247
  type SpecMember = {
240
248
  id?: string;
@@ -286,6 +294,7 @@ type SpecType = {
286
294
  description?: string;
287
295
  schema?: SpecSchema;
288
296
  type?: string | SpecSchema;
297
+ typeParameters?: SpecTypeParameter[];
289
298
  members?: SpecMember[];
290
299
  source?: SpecSource;
291
300
  tags?: SpecTag[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpkg-ts/spec",
3
- "version": "0.44.0",
3
+ "version": "0.46.0",
4
4
  "description": "Shared schema, validation, and diff utilities for OpenPkg specs",
5
5
  "keywords": [
6
6
  "openpkg",