initialize ts project
This commit is contained in:
parent
6d68e6a3be
commit
fc97b12562
7
src/parse.js
Normal file
7
src/parse.js
Normal 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
7
src/parse.ts
Normal 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
3
tsconfig.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"include": ["src/**/*", "tests/**/*"]
|
||||
}
|
Loading…
Reference in a new issue