mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* 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
20 lines
698 B
TypeScript
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;
|
|
};
|