@poppinss/utils 6.0.0-3 → 6.0.1-0

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,5 @@
1
- declare type Constructor = new (...args: any[]) => any;
2
- export declare type NormalizeConstructor<T extends Constructor> = {
3
- new (...args: any[]): InstanceType<T>;
4
- } & Omit<T, 'constructor'>;
5
- export interface UnaryFunction<T, R> {
1
+ import type { Constructor } from './types.js';
2
+ interface UnaryFunction<T, R> {
6
3
  (source: T): R;
7
4
  }
8
5
  export declare function compose<T extends Constructor, A>(superclass: T, mixin: UnaryFunction<T, A>): A;
@@ -15,4 +15,8 @@ export declare type ReadAllFilesOptions = ScanFsBaseOptions & {
15
15
  };
16
16
  export declare type JSONReplacer = (this: any, key: string, value: any) => any;
17
17
  export declare type JSONReviver = (this: any, key: string, value: any) => any;
18
+ export declare type Constructor = new (...args: any[]) => any;
19
+ export declare type NormalizeConstructor<T extends Constructor> = {
20
+ new (...args: any[]): InstanceType<T>;
21
+ } & Omit<T, 'constructor'>;
18
22
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poppinss/utils",
3
- "version": "6.0.0-3",
3
+ "version": "6.0.1-0",
4
4
  "description": "Handy utilities for repetitive work",
5
5
  "main": "build/index.js",
6
6
  "type": "module",