@poppinss/utils 3.3.0 → 3.3.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.
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
declare type Constructor = new (...args: any[]) => any;
|
|
2
|
+
declare type AbstractConstructor = abstract new (...args: any[]) => any;
|
|
2
3
|
/**
|
|
3
4
|
* Define static properties on a class with inheritance in play.
|
|
4
5
|
*/
|
|
5
|
-
export declare function defineStaticProperty<T extends Constructor, Prop extends keyof T>(self: T, BaseClass: Constructor, { propertyName, defaultValue, strategy, }: {
|
|
6
|
+
export declare function defineStaticProperty<T extends Constructor | AbstractConstructor, Prop extends keyof T>(self: T, BaseClass: Constructor | AbstractConstructor, { propertyName, defaultValue, strategy, }: {
|
|
6
7
|
propertyName: Prop;
|
|
7
8
|
defaultValue: T[Prop];
|
|
8
9
|
strategy: 'inherit' | 'define' | ((value: T[Prop]) => T[Prop]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poppinss/utils",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Handy utilities for repetitive work",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/fs-readdir-recursive": "^1.0.0",
|
|
39
39
|
"@types/lodash": "^4.14.175",
|
|
40
40
|
"@types/ms": "^0.7.31",
|
|
41
|
-
"@types/node": "^16.10.
|
|
41
|
+
"@types/node": "^16.10.3",
|
|
42
42
|
"@types/pluralize": "0.0.29",
|
|
43
43
|
"@types/require-all": "^3.0.3",
|
|
44
44
|
"del-cli": "^4.0.1",
|