From 2be13c30c3d71f4ed652889a081e9ef9c845110e Mon Sep 17 00:00:00 2001 From: James Gilles Date: Thu, 6 Oct 2016 01:18:47 -0400 Subject: [PATCH] Make victor less ambient (#11753) --- victor/index.d.ts | 12 +++++------- victor/victor-tests.ts | 10 ++-------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/victor/index.d.ts b/victor/index.d.ts index 3eee2bd37b..d32933b362 100644 --- a/victor/index.d.ts +++ b/victor/index.d.ts @@ -124,24 +124,24 @@ declare class Victor * @param vector */ multiply(vector:Victor):Victor; - + /** * Multiplies both vector axis by the given scalar value - * + * * @param victor */ multiplyScalar(scalar: number): Victor; /** * Multiplies the X axis by the given scalar - * + * * @param victor */ multiplyScalarX(scalar: number): Victor; /** * Multiplies the Y axis by the given scalar - * + * * @param vector */ multiplyScalarY(scalar: number): Victor; @@ -374,6 +374,4 @@ declare class Victor } -declare module "victor" { - export = Victor; -} +export = Victor; diff --git a/victor/victor-tests.ts b/victor/victor-tests.ts index 67deff3e72..5669668f0d 100644 --- a/victor/victor-tests.ts +++ b/victor/victor-tests.ts @@ -1,3 +1,5 @@ +import Victor = require('victor'); + var vector1 = new Victor(10,10) var vector2 = new Victor(20,20) @@ -40,11 +42,3 @@ vector1.angle() vector1.angleDeg() vector1.verticalAngle() vector1.verticalAngleDeg() - - - - - - - -