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/**/*"] +}