initialize ts project

This commit is contained in:
Bit Borealis 2022-08-11 15:02:51 +00:00
parent 6d68e6a3be
commit fc97b12562
Signed by: theotheroracle
GPG key ID: 2D816A2DCA6E5649
3 changed files with 17 additions and 0 deletions

7
src/parse.js Normal file
View file

@ -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;
}

7
src/parse.ts Normal file
View file

@ -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
}

3
tsconfig.json Normal file
View file

@ -0,0 +1,3 @@
{
"include": ["src/**/*", "tests/**/*"]
}