mol_plot_all 1.2.263 → 1.2.264

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/node.d.ts CHANGED
@@ -281,6 +281,19 @@ declare namespace $ {
281
281
  };
282
282
  }
283
283
 
284
+ declare namespace $ {
285
+ }
286
+
287
+ declare namespace $ {
288
+ let $mol_gap: {
289
+ readonly block: $mol_style_func<"var", "--mol_gap_block">;
290
+ readonly text: $mol_style_func<"var", "--mol_gap_text">;
291
+ readonly round: $mol_style_func<"var", "--mol_gap_round">;
292
+ readonly space: $mol_style_func<"var", "--mol_gap_space">;
293
+ readonly blur: $mol_style_func<"var", "--mol_gap_blur">;
294
+ };
295
+ }
296
+
284
297
  declare namespace $ {
285
298
  namespace $$ { }
286
299
  const $mol_object_field: unique symbol;
@@ -473,7 +486,8 @@ declare namespace $ {
473
486
 
474
487
  declare namespace $ {
475
488
  class $mol_wire_atom<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
476
- static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result, keys: number): (host: Host, args: Args) => $mol_wire_atom<Host, [...Args], Result>;
489
+ static solo<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result): $mol_wire_atom<Host, Args, Result>;
490
+ static plex<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result, key: Args[0]): $mol_wire_atom<Host, Args, Result>;
477
491
  static watching: Set<$mol_wire_atom<any, any, any>>;
478
492
  static watch(): void;
479
493
  watch(): void;
@@ -485,52 +499,32 @@ declare namespace $ {
485
499
  }
486
500
 
487
501
  declare namespace $ {
488
- function $mol_wire_mem<Keys extends number>(keys: Keys): <Host extends object, Field extends keyof Host, Prop extends Extract<Host[Field], (...args: any[]) => any>>(host: Host, field: string | Field, descr?: TypedPropertyDescriptor<Prop> | undefined) => {
489
- value: NonNullable<Prop>;
490
- enumerable?: boolean | undefined;
491
- configurable?: boolean | undefined;
492
- writable?: boolean | undefined;
493
- get?: (() => Prop) | undefined;
494
- set?: ((value: Prop) => void) | undefined;
495
- };
496
- function $mol_wire_mem_func<Keys extends number>(keys: Keys): <Result, Host, Args extends unknown[], Func extends (this: Host, ...args: Args) => Result>(func: Func) => Func;
502
+ type $mol_type_tail<Tuple extends readonly any[]> = ((...tail: Tuple) => any) extends ((head: any, ...tail: infer Tail) => any) ? Tail : never;
497
503
  }
498
504
 
499
505
  declare namespace $ {
500
- let $mol_mem: <Host extends object, Field extends keyof Host, Prop extends Extract<Host[Field], (...args: any[]) => any>>(host: Host, field: string | Field, descr?: TypedPropertyDescriptor<Prop> | undefined) => {
501
- value: NonNullable<Prop>;
502
- enumerable?: boolean | undefined;
503
- configurable?: boolean | undefined;
504
- writable?: boolean | undefined;
505
- get?: (() => Prop) | undefined;
506
- set?: ((value: Prop) => void) | undefined;
507
- };
508
- let $mol_mem_key: <Host extends object, Field extends keyof Host, Prop extends Extract<Host[Field], (...args: any[]) => any>>(host: Host, field: string | Field, descr?: TypedPropertyDescriptor<Prop> | undefined) => {
509
- value: NonNullable<Prop>;
510
- enumerable?: boolean | undefined;
511
- configurable?: boolean | undefined;
512
- writable?: boolean | undefined;
513
- get?: (() => Prop) | undefined;
514
- set?: ((value: Prop) => void) | undefined;
515
- };
516
- let $mol_mem_key2: <Host extends object, Field extends keyof Host, Prop extends Extract<Host[Field], (...args: any[]) => any>>(host: Host, field: string | Field, descr?: TypedPropertyDescriptor<Prop> | undefined) => {
517
- value: NonNullable<Prop>;
518
- enumerable?: boolean | undefined;
519
- configurable?: boolean | undefined;
520
- writable?: boolean | undefined;
521
- get?: (() => Prop) | undefined;
522
- set?: ((value: Prop) => void) | undefined;
523
- };
524
- let $mol_mem_key3: <Host extends object, Field extends keyof Host, Prop extends Extract<Host[Field], (...args: any[]) => any>>(host: Host, field: string | Field, descr?: TypedPropertyDescriptor<Prop> | undefined) => {
525
- value: NonNullable<Prop>;
526
- enumerable?: boolean | undefined;
527
- configurable?: boolean | undefined;
528
- writable?: boolean | undefined;
529
- get?: (() => Prop) | undefined;
530
- set?: ((value: Prop) => void) | undefined;
506
+ export function $mol_wire_solo<Args extends any[]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): TypedPropertyDescriptor<(...args: First_optional<Args>) => any>;
507
+ type First_optional<Args extends any[]> = Args extends [] ? [] : [Args[0] | undefined, ...$mol_type_tail<Args>];
508
+ export {};
509
+ }
510
+
511
+ declare namespace $ {
512
+ type $mol_type_error<Message, Info = {}> = Message & {
513
+ $mol_type_error: Info;
531
514
  };
532
515
  }
533
516
 
517
+ declare namespace $ {
518
+ export function $mol_wire_plex<Args extends any[]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): Guard<Args, TypedPropertyDescriptor<(...args: Args) => any> | undefined>;
519
+ type Guard<Args extends any[], Val> = unknown extends Args[0] ? Val : undefined extends Args[0] ? $mol_type_error<"Key can't be optional. Make it required or use solo channel.", Args> : Val;
520
+ export {};
521
+ }
522
+
523
+ declare namespace $ {
524
+ let $mol_mem: typeof $mol_wire_solo;
525
+ let $mol_mem_key: typeof $mol_wire_plex;
526
+ }
527
+
534
528
  declare namespace $ {
535
529
  function $mol_fail_catch(error: unknown): boolean;
536
530
  }