import * as d3 from 'd3' import {BaseType, Selection} from "d3"; declare module 'd3-selection' { export interface Selection< GElement extends BaseType, Datum, PElement extends BaseType, PDatum> { toggleClass: (name:string) => Selection clear: () => Selection show: () => Selection hide: () => Selection toggle: () => Selection after: (tagName:string) => Selection before: (tagName:string) => Selection } export const NoType: any; }