@my-devkit/core 1.0.100 → 1.0.102

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
1
  import { serializable } from './serialize';
2
2
  export interface Document extends serializable.SerializableObject {
3
- _path: string;
3
+ _path?: string;
4
4
  }
@@ -46,6 +46,6 @@ export declare namespace TypeHelper {
46
46
  type NonFunctionPropertyNames<T> = {
47
47
  [K in keyof T]: T[K] extends Function ? never : K;
48
48
  }[keyof T];
49
- export type ClassProperties<T> = Pick<T, NonFunctionPropertyNames<T>>;
49
+ export type ClassProperties<T> = Omit<Pick<T, NonFunctionPropertyNames<T>>, '_path' | 'publishedAt' | 'publishedAt'>;
50
50
  export {};
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@my-devkit/core",
3
- "version": "1.0.100",
3
+ "version": "1.0.102",
4
4
  "description": "My Devkit: common tools",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "peerDependencies": {},
26
26
  "devDependencies": {
27
- "@my-devkit/cli": "2.0.4",
27
+ "@my-devkit/cli": "2.0.6",
28
28
  "@types/lodash": "4.14.202",
29
29
  "@types/node": "20.10.5",
30
30
  "@typescript-eslint/eslint-plugin": "6.16.0",
package/src/document.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { serializable } from './serialize';
2
2
 
3
3
  export interface Document extends serializable.SerializableObject {
4
- _path: string;
4
+ _path?: string;
5
5
  }
@@ -192,5 +192,5 @@ export namespace TypeHelper {
192
192
  [K in keyof T]: T[K] extends Function ? never : K
193
193
  }[keyof T];
194
194
 
195
- export type ClassProperties<T> = Pick<T, NonFunctionPropertyNames<T>>;
195
+ export type ClassProperties<T> = Omit<Pick<T, NonFunctionPropertyNames<T>>, '_path' | 'publishedAt' | 'publishedAt'>;
196
196
  }