From 2afbaabadb9a2d85aca9af2f37e795569d7b7917 Mon Sep 17 00:00:00 2001 From: John Meyer <0x326@users.noreply.github.com> Date: Mon, 27 Nov 2017 20:39:57 -0500 Subject: [PATCH] Create TypeScript declaration file --- index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..c25db83 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,9 @@ +export function parse(value: string | number, property?: string): { + 'value': number, + 'unit': string +}; + +export function convert(to: string, value: string, element?: Element, property?: string): number; + +export function getDefaultValue(property: string): number; +export function getDefaultUnit(property: string): string;