Informing Typescript that a Value Will Be Initialized
LitElement has the following code:
And Typescript linting produces this error:
Property ‘gist’ has no initializer and is not definitely assigned in the constructor.
We want to clear this error.
Add an exclamation point (! — formally the Typescript non null assertion operator) after the property name like this:
This tells Typescript that the value will be initialized.