Skip to content

Commit f6110c1

Browse files
committed
chore(plugin): issue tracking
1 parent 7f83fcf commit f6110c1

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

packages/plugin/src/Initialization.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
import { ConfigSetFromMetaSet, OptionsResults } from 'jackspeak';
22
import * as Options from './Options.js';
33

4-
type FlattenConfigMetaSets<O extends Options.Options> = ConfigSetFromMetaSet<
5-
'number',
6-
false,
7-
Exclude<O['num'], undefined>
8-
> &
9-
ConfigSetFromMetaSet<'number', true, Exclude<O['numList'], undefined>> &
10-
ConfigSetFromMetaSet<'string', false, Exclude<O['opt'], undefined>> &
11-
ConfigSetFromMetaSet<'string', false, Exclude<O['opt'], undefined>> &
12-
ConfigSetFromMetaSet<'string', true, Exclude<O['optList'], undefined>> &
13-
ConfigSetFromMetaSet<'boolean', false, Exclude<O['flag'], undefined>> &
14-
ConfigSetFromMetaSet<'boolean', true, Exclude<O['flagList'], undefined>> &
15-
Exclude<O['fields'], undefined>;
4+
type FlattenConfigMetaSets<O extends Options.Options> =
5+
// FIXME all options are getting typed `string | undefined`
6+
ConfigSetFromMetaSet<'number', false, Exclude<O['num'], undefined>> &
7+
ConfigSetFromMetaSet<'number', true, Exclude<O['numList'], undefined>> &
8+
ConfigSetFromMetaSet<'string', false, Exclude<O['opt'], undefined>> &
9+
ConfigSetFromMetaSet<'string', false, Exclude<O['opt'], undefined>> &
10+
ConfigSetFromMetaSet<'string', true, Exclude<O['optList'], undefined>> &
11+
ConfigSetFromMetaSet<'boolean', false, Exclude<O['flag'], undefined>> &
12+
ConfigSetFromMetaSet<'boolean', true, Exclude<O['flagList'], undefined>> &
13+
Exclude<O['fields'], undefined>;
1614

1715
export type Arguments<O extends Options.Options> = {
1816
positionals: (string | undefined)[];

0 commit comments

Comments
 (0)