Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export class FormattedString
* @param language The programming language for syntax highlighting
* @returns A new FormattedString with pre formatting applied
*/
static pre(text: Stringable, language: string) {
static pre(text: Stringable, language?: string) {
return fmt`${pre(language)}${text}${pre}`;
}

Expand Down Expand Up @@ -659,7 +659,7 @@ export class FormattedString
* @param language The programming language for syntax highlighting
* @returns A new FormattedString combining this instance with pre formatting
*/
pre(text: Stringable, language: string) {
pre(text: Stringable, language?: string) {
return fmt`${this}${FormattedString.pre(text, language)}`;
}

Expand Down