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
* Correct parent element/datum types for sub-selections
* handle EnterElement case
* re-order overloads
* formatting
* fix d3-zoom test for new append return type
* (Feature) Enhance handsontable type definitions
More in depth coverage of Handsontable library. Specifically adds:
1. Type definitions for writing custom HOT plugins outside of HOT
2. More in depth column property definitions
3. General utilties that are exposed on HOT object, for that are used by
various HOT plugins
* Add linting file
* Add definitions for jquery-toastmessage-plugin
* Add tslint.json
* enable strict null checks
* Fix linting errors
* target module "commonjs" to pass Travis test (even though no modules are used)
* add 'lib' to taconfig.json to pass Travis test
* add 'dom' to lib in tsconfig.json
This change is necessary when compiling with strictNullChecks = true.
Null is a valid value in all setMap calls. In most cases, calling xxx.setMap(null) results in xxx being removed from the map.
* Add GeometryUtil functions to leaflet-draw
Add two functions in the GeometryUtil namespace of leaflet-draw
* Remove illegal whitespaces
* Add GeometryUtil function calls to tests
Validate that the function declarations are valid by adding calls of
geodesicArea() and readableArea() to the tests.
Remove a whitespace that the linter complained about.
* SystemJS: refined typeof 'transpiler' option, added plugin-typescript specific flags to typescriptOptions
Refined typeof 'transpiler' option to only allow `false` as opposed to `boolean`.
Added the `typescriptOptions` properties that are specific to plugin-typescript to typescriptOptions object.
* lint and fix warnings
current definition
```ts
scope(options?: string | string[] | ScopeOptions | WhereOptions): this;
```
doesn't allow are valid calls. example from [documentation](http://docs.sequelizejs.com/en/latest/docs/scopes/):
```ts
Project.scope('random', { method: ['accessLevel', 19]}).findAll();
```
changing it to
```ts
scope(options?: string | ScopeOptions | WhereOptions | Array<string|ScopeOptions|WhereOptions>): this;
```
should fix the issue since, according to the docs
```ts
// These two are equivalent
Project.scope('deleted', 'activeUsers').findAll();
Project.scope(['deleted', 'activeUsers']).findAll();
```
TS 2.2 provides definitions for the fetch API directly in the
dom library, and those definitions are slightly different from
those that were provided in @types/whatwg-fetch. This change
updates the webappsec-credential-management definitions to be
compatible with TS 2.2, and drops the dependency on
@types/whatwg-fetch.
Hi!
I was having this issue while using the library:
```
ERROR in [at-loader] frontend/src/components/modals/Upload.tsx:538:40
TS2339: Property 'customEditor' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<TableHeaderColumnProps, ComponentState>>...'.
```
It seems it is missing from the Definition file, so I just added it :).
Hope it helps!