mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
Merge namespaces
But keep both `export as` global names for backwards compatibility This introduces the `vg` members onto the Vega namespace, which is incorrect, however it leaves existing code which depends on this dts as functional while making allowing module consumers to have all Vega types available.
This commit is contained in:
10
vega/index.d.ts
vendored
10
vega/index.d.ts
vendored
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Tom Crockett <http://github.com/pelotom>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace Vega {
|
||||
declare namespace vg {
|
||||
|
||||
export type ChartViewConstructor = {
|
||||
(args: {renderer: 'svg'} & ViewArgs): SvgView;
|
||||
@@ -525,15 +525,13 @@ declare namespace Vega {
|
||||
offset?: number;
|
||||
band?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
declare namespace vg {
|
||||
export var parse: Vega.Parse;
|
||||
export var parse: Parse;
|
||||
export namespace scene {
|
||||
export function item(mark: Vega.Node): Vega.Node;
|
||||
export function item(mark: Node): Node;
|
||||
}
|
||||
|
||||
export class Bounds implements Vega.Bounds {
|
||||
export class Bounds implements Bounds {
|
||||
x1: number;
|
||||
y1: number;
|
||||
x2: number;
|
||||
|
||||
Reference in New Issue
Block a user