@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.
@@ -18,6 +18,7 @@ export default async function () {
18
18
  demo: true,
19
19
  doc: true,
20
20
  fixtures: true,
21
+ patches: true,
21
22
  "pnpm-lock.yaml": true,
22
23
  "pnpm-workspace.yaml": true
23
24
  }), ...Object.keys({
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: unknown[]) => unknown;
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: unknown[]) => unknown;
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: any, ...args: any[]): any;
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "15.3.4",
3
+ "version": "15.3.6",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",