@naturalcycles/nodejs-lib 15.96.0 → 15.96.1

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.
@@ -163,6 +163,8 @@ export declare class JSchema<OUT, Opt> implements StandardSchemaV1<unknown, OUT>
163
163
  */
164
164
  out: OUT;
165
165
  opt: Opt;
166
+ /** Forces OUT to be invariant (prevents covariant subtype matching in object property constraints). */
167
+ protected _invariantOut: (x: OUT) => void;
166
168
  }
167
169
  export declare class JBuilder<OUT, Opt> extends JSchema<OUT, Opt> {
168
170
  protected setErrorMessage(ruleName: string, errorMessage: string | undefined): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/nodejs-lib",
3
3
  "type": "module",
4
- "version": "15.96.0",
4
+ "version": "15.96.1",
5
5
  "dependencies": {
6
6
  "@naturalcycles/js-lib": "^15",
7
7
  "@standard-schema/spec": "^1",
@@ -506,6 +506,9 @@ export class JSchema<OUT, Opt>
506
506
  */
507
507
  out!: OUT
508
508
  opt!: Opt
509
+
510
+ /** Forces OUT to be invariant (prevents covariant subtype matching in object property constraints). */
511
+ declare protected _invariantOut: (x: OUT) => void
509
512
  }
510
513
 
511
514
  // ==== JBuilder (chainable base) ====