From 6dda128c44bc6904f71e13ba77a0413ae95ec19e Mon Sep 17 00:00:00 2001 From: Paul Vasich Date: Tue, 18 Sep 2018 11:17:52 -0500 Subject: [PATCH] Add Complex.re & Complex.im z.re & z.im are accessible on each Complex instance. --- types/complex/index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types/complex/index.d.ts b/types/complex/index.d.ts index 90ad161ffc..6ac9fc546c 100644 --- a/types/complex/index.d.ts +++ b/types/complex/index.d.ts @@ -45,6 +45,16 @@ export default class Complex { * A instance for the real number */ static one: Complex; + + /** + * The instance's real component. + */ + re: number; + + /** + * The instance's imaginary component. + */ + im: number; /** * Set the real and imaginary properties a and b from a + bi.