Skip to content

Commit fe00112

Browse files
committed
chore: compile fix
1 parent 0b846b7 commit fe00112

File tree

3 files changed

+127
-88
lines changed

3 files changed

+127
-88
lines changed

src/ditamap/command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class Command extends Ditamap {
2727
super(filename, {});
2828

2929
const flags = ensureObject(command.flags);
30-
const parameters = this.getParametersForTemplate(flags);
30+
const parameters = this.getParametersForTemplate(flags as Dictionary<CommandHelpInfo>);
3131

3232
// The template only expects a oneline description. Punctuate the first line of either the lingDescription or description.
3333
const description = punctuate(asString(command.longDescription) || asString(command.description));

test/utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('punctuate', () => {
4646

4747
it('multi line descriptions to longDescriptions', () => {
4848
expect(punctuate(`lowercase oclif description${EOL}${EOL}some other stuff`)).to.equal(
49-
`Lowercase oclif description.${EOL}${EOL}some other stuff`
49+
'Lowercase oclif description.'
5050
);
5151
});
5252

0 commit comments

Comments
 (0)