@dword-design/base 15.3.4 → 15.3.6
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/dist/index.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import type { PartialCommandObjectInObject } from 'make-cli';
|
|
|
6
6
|
import type { RenovateConfig } from 'renovate/dist/config/types';
|
|
7
7
|
import type { PackageJson, TsConfigJson } from 'type-fest';
|
|
8
8
|
import type { PartialCommandOptions } from './commands/command-options-input';
|
|
9
|
-
type HandlerWithBase<TConfig extends Config = Config> = (this: Base<TConfig>, ...args:
|
|
9
|
+
type HandlerWithBase<TConfig extends Config = Config> = (this: Base<TConfig>, ...args: any[]) => any;
|
|
10
10
|
type PartialCommandObjectInObjectWithBase<TConfig extends Config = Config> = Omit<PartialCommandObjectInObject, 'handler'> & {
|
|
11
|
-
handler: (this: Base<TConfig>, ...args:
|
|
11
|
+
handler: (this: Base<TConfig>, ...args: any[]) => any;
|
|
12
12
|
};
|
|
13
13
|
type PartialCommandInObjectWithBase<TConfig extends Config = Config> = PartialCommandObjectInObjectWithBase<TConfig> | HandlerWithBase<TConfig>;
|
|
14
14
|
type Config = {
|
|
@@ -94,7 +94,7 @@ declare class Base<TConfig extends Config = Config> {
|
|
|
94
94
|
constructor(configInput?: PartialConfig<TConfig>, { cwd }?: {
|
|
95
95
|
cwd?: string | undefined;
|
|
96
96
|
});
|
|
97
|
-
run(name:
|
|
97
|
+
run<K extends keyof TConfig['commands'] & string>(name: K, ...args: Parameters<TConfig['commands'][K]['handler']>): ReturnType<TConfig['commands'][K]['handler']>;
|
|
98
98
|
}
|
|
99
99
|
export { default as loadConfig } from './load-config';
|
|
100
100
|
export { default as loadConfigSync } from './load-config-sync';
|