Skip to content

Some diagnostic messages missing full stops/periods #37753

@cherryblossom000

Description

@cherryblossom000

TypeScript Version: 3.8.3

Search Terms:
diagnostic messages full stop period
Code

declare const v: void
// An expression of type 'void' cannot be tested for truthiness
if (v) { }

// All type parameters are unused
class C<T, U> {
	static x: any
	static #x: any

	// Private identifiers cannot be used as parameters
	constructor(#x: any) {
		// Property 'x' is a static member of type 'C<T, U>'
		this.x
	}
}

Expected behavior:
Error messages should have a full stop/period at the end as per the guidelines. I fixed these as well as some other messages here.

Actual behavior:
No full stop.

Playground Link:
link

Related Issues:
none

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions