pwi-plata-type 0.4.184 → 0.4.187

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,4 +1,4 @@
1
- #!/usr/bin/env -S node --expose-gc
1
+ #!/usr/bin/env node
2
2
  "use strict";
3
3
  var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  return (mod && mod.__esModule) ? mod : { "default": mod };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pwi-plata-type",
3
- "version": "0.4.184",
3
+ "version": "0.4.187",
4
4
  "main": "__BUILD__/index",
5
5
  "types": "src/@types/exported.d.ts",
6
6
  "bin": {
@@ -18,7 +18,7 @@ type StringKeyOfObject<T extends Object> = Exclude<{
18
18
  type AnyRecord<T> = {
19
19
  [P in string]: T;
20
20
  }
21
- type LooseAutocomplete<T extends string> = T | Omit<string, T>
21
+ type LooseAutocomplete<T extends string> = T | (string & {})
22
22
 
23
23
  type Replace<T, O, U> = T extends O ? Exclude<T, O> | U : T
24
24
 
@@ -106,9 +106,11 @@ interface PlataEnvConfig {
106
106
  env: PlataEnv
107
107
  }
108
108
 
109
- type DeepWritable<T extends {}> = {
110
- -readonly [K in keyof T]: T[K] extends Dictionary<any> ? DeepWritable<T[K]> : T[K]
111
- }
109
+ type DeepWritable<T extends {}> = Prettify<{
110
+ -readonly [K in keyof T]: T[K] extends Dictionary<any> ?
111
+ T[K] extends Date ? Date : DeepWritable<T[K]>
112
+ : T[K]
113
+ }>
112
114
 
113
115
  type ArrayCombine<T extends readonly any[]> =
114
116
  T extends readonly [ infer U extends T[number] ] ? U
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S node --expose-gc
1
+ #!/usr/bin/env node
2
2
  import path from 'node:path'
3
3
  import { PlataEnvLoader } from '../libs/env'
4
4
  import { PlataBuild } from '../libs/build'