DefinitelyTyped/types/dom-inputevent/index.d.ts
Nathan Shively-Sanders 984e42db6f
Fixes for early June TS3.6 DOM update (#36294)
* Fixes for early June TS3.6 DOM update

1. Apollo-link used GlobalFetch, which has been removed. Until my PR
goes in (apollographql/apollo-link#1095), I added a shim in
apollo-upload-client, which uses apollo-link-http-common.
2. dom-inputevent is updated to match the spec-standard InputEvent types that
will ship with Typescript 3.6.
3. Same for webappsec-credential-management
4. Fixed to-markdown's tests to work with the new, non-nullable
definition of node.style.fontStyle.

* Fix redundant `undefined` lint

* Make fetch shim work on more versions of Typescript

* Require TS 3.1 for apollo-upload-client fix
2019-06-19 13:57:51 -07:00

20 lines
698 B
TypeScript

// Type definitions for non-npm package UI Events W3C Working Draft — Input Events — Interface InputEvent 1.0
// Project: https://w3c.github.io/uievents/#interface-inputevent
// Definitions by: Steven Sinatra <https://github.com/diagramatics>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface InputEventInit extends UIEventInit {
data?: string | null;
isComposing?: boolean;
}
// tslint:disable-next-line no-empty-interface
interface InputEvent extends UIEvent {
readonly data: string | null;
readonly isComposing: boolean;
}
declare var InputEvent: {
prototype: InputEvent;
new(type: string, eventInitDict?: InputEventInit): InputEvent;
};