@ts-expect-error 2322
|
// TODO improve typing |
|
// @ts-expect-error 2322 |
};
let initialized = false;
// TODO improve typing
// @ts-expect-error 2322
const config: Configuration = { lifoUsage: true };
/**
* Configure core options
*
* May be called multiple times, overlaying partial configurations they become
* available/defined
*
* @see {@link Configuration}
*/
export async function configure(proposal: Configuration = {}) {
config.lifoUsage = Plugin.hydrate(proposal.lifoUsage, config.lifoUsage);
const { core = {}, jackspeak: jackOptions, positionals = {} } = proposal;
const { requirePositionals, ...deprecated } = core;
const jackspeak = {
...deprecated,
@ts-expect-error 2322
qui-cli/packages/core/src/Core.ts
Lines 31 to 32 in 5828d89