mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Fix bugs discovered by TS 4.1 (#47683)
1. TS 4.1 no longer has a built-in type named 'Position'. 2. TS 4.1 intentionally sets the global `name: void` to make it less usable. This flushed out a few bugs.
This commit is contained in:
parent
1cb79ff5d9
commit
7aae63bc29
2
types/better-scroll/index.d.ts
vendored
2
types/better-scroll/index.d.ts
vendored
@ -256,7 +256,7 @@ declare class BScroll {
|
||||
'scroll' |
|
||||
'scrollEnd' |
|
||||
'touchEnd',
|
||||
fn: (pos: Position) => any
|
||||
fn: (pos: BScroll.Position) => any
|
||||
): void;
|
||||
|
||||
off(
|
||||
|
||||
3
types/react-cytoscapejs/index.d.ts
vendored
3
types/react-cytoscapejs/index.d.ts
vendored
@ -2,7 +2,6 @@
|
||||
// Project: https://github.com/plotly/react-cytoscapejs
|
||||
// Definitions by: Emmanuel COunasse <https://github.com/manuc66/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
import cytoscape = require('cytoscape');
|
||||
import { Component, CSSProperties } from 'react';
|
||||
@ -16,7 +15,7 @@ interface CytoscapeComponentProps {
|
||||
stylesheet?: cytoscape.Stylesheet | cytoscape.Stylesheet[] | string;
|
||||
className?: string;
|
||||
zoom?: number;
|
||||
pan?: Position;
|
||||
pan?: cytoscape.Position;
|
||||
minZoom?: number;
|
||||
maxZoom?: number;
|
||||
zoomingEnabled?: boolean;
|
||||
|
||||
@ -19,4 +19,5 @@ class MyCustomElement extends HTMLElement {
|
||||
}
|
||||
}
|
||||
|
||||
const name = "name";
|
||||
customElements.define(name, MyCustomElement);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user