Files
DefinitelyTyped/chrome
NN 9f063cbc26 chrome.runtime.lastError is allowed to be undefined (#14374)
Technically lastError is not present if there is no error ( 'lastError' in chrome.runtime === false ).
TypeScript currently cannot express this.
Since chrome.runtime is declared as namespace and not as interface, it is not possible to use optional variable, hence undefined type.

See documentation: https://developer.chrome.com/extensions/runtime#property-lastError
2017-03-10 16:31:40 -08:00
..