cafe-utility 15.0.0 → 15.0.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.
- package/index.d.ts +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -361,8 +361,8 @@ export declare class Optional<T> {
|
|
|
361
361
|
ifPresent(fn: (value: T) => void): this;
|
|
362
362
|
orElse(fn: () => void): void;
|
|
363
363
|
}
|
|
364
|
-
interface Newable<T> {
|
|
365
|
-
new (): T;
|
|
364
|
+
interface Newable<T> extends Function {
|
|
365
|
+
new (...args: any[]): T;
|
|
366
366
|
}
|
|
367
367
|
declare function findInstance<T, K extends T>(array: T[], type: Newable<K>): Optional<K>;
|
|
368
368
|
type Playbook<T> = {
|