Socket
Socket
Sign inDemoInstall

@lifaon/class-factory

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "@lifaon/class-factory",
"version": "1.0.1",
"version": "1.0.2",
"description": "Description",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -19,2 +19,5 @@ // kind of any, but different => sometimes better for inference

// converts the properties of T (object) as writable (removes readonly)
export type Writeable<T> = { -readonly [P in keyof T]: T[P] };
// removes from T (object) the properties K (tuple)

@@ -21,0 +24,0 @@ export type ExcludeProperties<T, K extends (keyof T)[]> = Pick<T, Exclude<keyof T, TupleTypes<K>>>;

@@ -11,2 +11,5 @@ export declare type Any = boolean | string | number | object | symbol | null | undefined | any[];

export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export declare type Writeable<T> = {
-readonly [P in keyof T]: T[P];
};
export declare type ExcludeProperties<T, K extends (keyof T)[]> = Pick<T, Exclude<keyof T, TupleTypes<K>>>;

@@ -13,0 +16,0 @@ export declare type RequireProperties<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc