From fc97b12562964dafc2bd7b867454cf00d2f78b24 Mon Sep 17 00:00:00 2001 From: Bit Borealis Date: Thu, 11 Aug 2022 15:02:51 +0000 Subject: [PATCH] initialize ts project --- src/parse.js | 7 +++++++ src/parse.ts | 7 +++++++ tsconfig.json | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 src/parse.js create mode 100644 src/parse.ts create mode 100644 tsconfig.json diff --git a/src/parse.js b/src/parse.js new file mode 100644 index 0000000..2002254 --- /dev/null +++ b/src/parse.js @@ -0,0 +1,7 @@ +// number will be 0 if valid +// 1 if no id ( creator ) +// 2 if encryption key is missing / malformed / wrong length +function validUrl(url) { + // do stuff + return 0; +} diff --git a/src/parse.ts b/src/parse.ts new file mode 100644 index 0000000..d9d4a25 --- /dev/null +++ b/src/parse.ts @@ -0,0 +1,7 @@ +// number will be 0 if valid +// 1 if no id ( creator ) +// 2 if encryption key is missing / malformed / wrong length +function validUrl(url: string): number { + // do stuff + return 0 +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..d46fd1e --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,3 @@ +{ + "include": ["src/**/*", "tests/**/*"] +}