TypeScript Day 8
This commit is contained in:
parent
d64729f2fe
commit
120b14e111
9 changed files with 483 additions and 147393 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
|
yarn-*.cjs
|
147392
TypeScript/day7/.yarn/releases/yarn-1.22.10.cjs
vendored
147392
TypeScript/day7/.yarn/releases/yarn-1.22.10.cjs
vendored
File diff suppressed because one or more lines are too long
5
TypeScript/day8/.yarnrc
Normal file
5
TypeScript/day8/.yarnrc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||||
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
|
yarn-path ".yarn/releases/yarn-1.22.10.cjs"
|
300
TypeScript/day8/input
Normal file
300
TypeScript/day8/input
Normal file
|
@ -0,0 +1,300 @@
|
||||||
|
"azlgxdbljwygyttzkfwuxv"
|
||||||
|
"v\xfb\"lgs\"kvjfywmut\x9cr"
|
||||||
|
"merxdhj"
|
||||||
|
"dwz"
|
||||||
|
"d\\gkbqo\\fwukyxab\"u"
|
||||||
|
"k\xd4cfixejvkicryipucwurq\x7eq"
|
||||||
|
"nvtidemacj\"hppfopvpr"
|
||||||
|
"kbngyfvvsdismznhar\\p\"\"gpryt\"jaeh"
|
||||||
|
"khre\"o\x0elqfrbktzn"
|
||||||
|
"nugkdmqwdq\x50amallrskmrxoyo"
|
||||||
|
"jcrkptrsasjp\\\"cwigzynjgspxxv\\vyb"
|
||||||
|
"ramf\"skhcmenhbpujbqwkltmplxygfcy"
|
||||||
|
"aqjqgbfqaxga\\fkdcahlfi\"pvods"
|
||||||
|
"pcrtfb"
|
||||||
|
"\x83qg\"nwgugfmfpzlrvty\"ryoxm"
|
||||||
|
"fvhvvokdnl\\eap"
|
||||||
|
"kugdkrat"
|
||||||
|
"seuxwc"
|
||||||
|
"vhioftcosshaqtnz"
|
||||||
|
"gzkxqrdq\\uko\"mrtst"
|
||||||
|
"znjcomvy\x16hhsenmroswr"
|
||||||
|
"clowmtra"
|
||||||
|
"\xc4"
|
||||||
|
"jpavsevmziklydtqqm"
|
||||||
|
"egxjqytcttr\\ecfedmmovkyn\"m"
|
||||||
|
"mjulrvqgmsvmwf"
|
||||||
|
"o\\prxtlfbatxerhev\xf9hcl\x44rzmvklviv"
|
||||||
|
"lregjexqaqgwloydxdsc\\o\"dnjfmjcu"
|
||||||
|
"lnxluajtk\x8desue\\k\x7abhwokfhh"
|
||||||
|
"wrssfvzzn\"llrysjgiu\"npjtdli"
|
||||||
|
"\x67lwkks"
|
||||||
|
"bifw\"ybvmwiyi\"vhol\"vol\xd4"
|
||||||
|
"aywdqhvtvcpvbewtwuyxrix"
|
||||||
|
"gc\xd3\"caukdgfdywj"
|
||||||
|
"uczy\\fk"
|
||||||
|
"bnlxkjvl\x7docehufkj\\\"qoyhag"
|
||||||
|
"bidsptalmoicyorbv\\"
|
||||||
|
"jorscv\"mufcvvfmcv\"ga"
|
||||||
|
"sofpwfal\\a"
|
||||||
|
"kcuqtbboaly\"uj\"k"
|
||||||
|
"n\\c"
|
||||||
|
"x\"\xcaj\\xwwvpdldz"
|
||||||
|
"eyukphh"
|
||||||
|
"wcyjq"
|
||||||
|
"vjx\"\"hjroj\"l\x4cjwbr"
|
||||||
|
"xcodsxzfqw\\rowqtuwvjnxupjnrh"
|
||||||
|
"yc"
|
||||||
|
"fpvzldgbdtca\"hqwa"
|
||||||
|
"ymjq\x8ahohvafubra\"hgqoknkuyph"
|
||||||
|
"kx\\mkaaklvcup"
|
||||||
|
"belddrzegcsxsyfhzyz"
|
||||||
|
"fuyswi"
|
||||||
|
"\\hubzebo\"ha\\qyr\"dv\\"
|
||||||
|
"mxvlz\"fwuvx\"cyk\""
|
||||||
|
"ftbh\"ro\\tmcpnpvh\"xx"
|
||||||
|
"ygi"
|
||||||
|
"rw\"\"wwn\\fgbjumq\"vgvoh\xd0\"mm"
|
||||||
|
"\"pat\"\x63kpfc\"\x2ckhfvxk\"uwqzlx"
|
||||||
|
"o"
|
||||||
|
"d\"hqtsfp\xceaswe\"\xc0lw"
|
||||||
|
"zajpvfawqntvoveal\"\"trcdarjua"
|
||||||
|
"xzapq"
|
||||||
|
"rkmhm"
|
||||||
|
"byuq"
|
||||||
|
"rwwmt\xe8jg\xc2\"omt"
|
||||||
|
"nfljgdmgefvlh\"x"
|
||||||
|
"rpjxcexisualz"
|
||||||
|
"doxcycmgaiptvd"
|
||||||
|
"rq\\\"mohnjdf\\xv\\hrnosdtmvxot"
|
||||||
|
"oqvbcenib\"uhy\\npjxg"
|
||||||
|
"pkvgnm\\ruayuvpbpd"
|
||||||
|
"kknmzpxqfbcdgng"
|
||||||
|
"piduhbmaympxdexz"
|
||||||
|
"vapczawekhoa\\or"
|
||||||
|
"tlwn\"avc\"bycg\"\"xuxea"
|
||||||
|
"\xcdvryveteqzxrgopmdmihkcgsuozips"
|
||||||
|
"kpzziqt"
|
||||||
|
"sdy\\s\"cjq"
|
||||||
|
"yujs"
|
||||||
|
"qte\"q"
|
||||||
|
"qyvpnkhjcqjv\"cclvv\"pclgtg\xeak\"tno"
|
||||||
|
"xwx"
|
||||||
|
"vibuvv"
|
||||||
|
"qq\""
|
||||||
|
"wwjduomtbkbdtorhpyalxswisq\"r"
|
||||||
|
"afuw\\mfjzctcivwesutxbk\"lk"
|
||||||
|
"e\xcef\\hkiu"
|
||||||
|
"ftdrgzvygcw\"jwsrcmgxj"
|
||||||
|
"zrddqfkx\x21dr\"ju\"elybk\"powj\"\"kpryz"
|
||||||
|
"dttdkfvbodkma\""
|
||||||
|
"lzygktugpqw"
|
||||||
|
"qu\x83tes\\u\"tnid\"ryuz"
|
||||||
|
"\\o\"pe\\vqwlsizjklwrjofg\xe2oau\\rd"
|
||||||
|
"mikevjzhnwgx\"fozrj\"h\""
|
||||||
|
"ligxmxznzvtachvvbahnff"
|
||||||
|
"d\\kq"
|
||||||
|
"tnbkxpzmcakqhaa"
|
||||||
|
"g\\yeakebeyv"
|
||||||
|
"cqkcnd\"sxjxfnawy\x31zax\x6ceha"
|
||||||
|
"m\x0dtqotffzdnetujtsgjqgwddc"
|
||||||
|
"masnugb\"etgmxul\x3bqd\\tmtddnvcy"
|
||||||
|
"floediikodfgre\x23wyoxlswxflwecdjpt"
|
||||||
|
"zu"
|
||||||
|
"r"
|
||||||
|
"\"ashzdbd\"pdvba\xeeumkr\\amnj"
|
||||||
|
"ckslmuwbtfouwpfwtuiqmeozgspwnhx"
|
||||||
|
"t\\qjsjek\xf9gjcxsyco\"r"
|
||||||
|
"hoed\x1b\\tcmaqch\"epdy"
|
||||||
|
"mgjiojwzc\\ypqcn\xb1njmp\"aeeblxt"
|
||||||
|
"\xdf\"h\x5enfracj"
|
||||||
|
"\x6fpbpocrb"
|
||||||
|
"jbmhrswyyq\\"
|
||||||
|
"wtyqtenfwatji\"ls\\"
|
||||||
|
"voy"
|
||||||
|
"awj"
|
||||||
|
"rtbj\"j"
|
||||||
|
"hynl"
|
||||||
|
"orqqeuaat\\xu\\havsgr\xc5qdk"
|
||||||
|
"g\"npyzjfq\"rjefwsk"
|
||||||
|
"rk\\kkcirjbixr\\zelndx\"bsnqvqj\""
|
||||||
|
"tecoz"
|
||||||
|
"dn\"uswngbdk\""
|
||||||
|
"qb\\"
|
||||||
|
"wpyis\\ebq"
|
||||||
|
"ppwue\\airoxzjjdqbvyurhaabetv"
|
||||||
|
"fxlvt"
|
||||||
|
"ql\"oqsmsvpxcg\"k"
|
||||||
|
"vqlhuec\\adw"
|
||||||
|
"qzmi\xffberakqqkk"
|
||||||
|
"tisjqff\"wf"
|
||||||
|
"yhnpudoaybwucvppj"
|
||||||
|
"xhfuf\\ehsrhsnfxcwtibd\"ubfpz"
|
||||||
|
"ihgjquzhf\""
|
||||||
|
"ff\x66dsupesrnusrtqnywoqcn\\"
|
||||||
|
"z\x77zpubbjmd"
|
||||||
|
"\"vhzlbwq\"xeimjt\\xe\x85umho\"m\"\"bmy"
|
||||||
|
"mmuvkioocmzjjysi\"mkfbec\""
|
||||||
|
"rpgghowbduw\x2fayslubajinoik\xd0hcfy"
|
||||||
|
"xrkyjqul\xdexlojgdphczp\"jfk"
|
||||||
|
"mg\x07cnr\x8b\x67xdgszmgiktpjhawho"
|
||||||
|
"kdgufhaoab"
|
||||||
|
"rlhela\"nldr"
|
||||||
|
"wzye\x87u"
|
||||||
|
"yif\x75bjhnitgoarmfgqwpmopu"
|
||||||
|
"pvlbyez\"wyy\x3dpgr"
|
||||||
|
"ezdm\"ovkruthkvdwtqwr\"ibdoawzgu"
|
||||||
|
"qubp"
|
||||||
|
"b\\kcpegcn\\zgdemgorjnk"
|
||||||
|
"gjsva\\kzaor\"\"gtpd"
|
||||||
|
"\"kt"
|
||||||
|
"rlymwlcodix"
|
||||||
|
"qqtmswowxca\"jvv"
|
||||||
|
"jni\xebwhozb"
|
||||||
|
"zhino\"kzjtmgxpi\"zzexijg"
|
||||||
|
"tyrbat\\mejgzplufxixkyg"
|
||||||
|
"lhmopxiao\x09\"p\xebl"
|
||||||
|
"xefioorxvate"
|
||||||
|
"nmcgd\x46xfujt\"w"
|
||||||
|
"\xe3wnwpat\"gtimrb"
|
||||||
|
"wpq\"xkjuw\xebbohgcagppb"
|
||||||
|
"fmvpwaca"
|
||||||
|
"mlsw"
|
||||||
|
"fdan\\\x9e"
|
||||||
|
"\"f\"fmdlzc"
|
||||||
|
"nyuj\\jnnfzdnrqmhvjrahlvzl"
|
||||||
|
"zn\"f\xcfsshcdaukkimfwk"
|
||||||
|
"uayugezzo\\\"e\"blnrgjaupqhik"
|
||||||
|
"efd\"apkndelkuvfvwyyatyttkehc"
|
||||||
|
"ufxq\\\"m\"bwkh\x93kapbqrvxxzbzp\\"
|
||||||
|
"fgypsbgjak\x79qblbeidavqtddfacq\\i\"h"
|
||||||
|
"kcfgpiysdxlgejjvgndb\\dovfpqodw"
|
||||||
|
"\"onpqnssmighipuqgwx\"nrokzgvg"
|
||||||
|
"vhjrrhfrba\"jebdanzsrdusut\\wbs"
|
||||||
|
"o\xdakymbaxakys"
|
||||||
|
"uwxhhzz\\mtmhghjn\\\\tnhzbejj"
|
||||||
|
"yd\\"
|
||||||
|
"bpgztp\\lzwpdqju\"it\x35qjhihjv"
|
||||||
|
"\\my\\b\"klnnto\\\xb3mbtsh"
|
||||||
|
"ezyvknv\"l\x2bdhhfjcvwzhjgmhwbqd\"\\"
|
||||||
|
"ftkz\"amoncbsohtaumhl\"wsodemopodq"
|
||||||
|
"ifv"
|
||||||
|
"dmzfxvzq"
|
||||||
|
"sped\"bvmf\"mmevl\"zydannpfny"
|
||||||
|
"fjxcjwlv\"pnqyrzatsjwsqfidb"
|
||||||
|
"muc\xfdqouwwnmuixru\\zlhjintplvtee"
|
||||||
|
"mraqgvmj"
|
||||||
|
"njopq\"ftcsryo"
|
||||||
|
"enoh\"n"
|
||||||
|
"t\"ntjhjc\"nzqh\xf7dcohhlsja\x7dtr"
|
||||||
|
"flbqcmcoun"
|
||||||
|
"dxkiysrn\\dyuqoaig"
|
||||||
|
"nehkzi\"h\"syktzfufotng\xdafqo"
|
||||||
|
"dzkjg\\hqjk\\\"zfegssjhn"
|
||||||
|
"sadlsjv"
|
||||||
|
"vmfnrdb\""
|
||||||
|
"ac\\bdp\"n"
|
||||||
|
"qt\x89h"
|
||||||
|
"lsndeugwvijwde\\vjapbm\\k\\nljuva"
|
||||||
|
"twpmltdzyynqt\\z\\tnund\x64hm"
|
||||||
|
"hpcyata\"ocylbkzdnhujh"
|
||||||
|
"hskzq\"knntuhscex\"q\\y\\vqj\x3an"
|
||||||
|
"eekwyufvji\\mqgeroekxeyrmymq"
|
||||||
|
"hl\"durthetvri\xebw\\jxu\"rcmiuy"
|
||||||
|
"\"fxdnmvnftxwesmvvq\"sjnf\xaabpg\"iary"
|
||||||
|
"\"\"nksqso"
|
||||||
|
"ruq\xbezugge\"d\"hwvoxmy\"iawikddxn\"x"
|
||||||
|
"rxxnlfay"
|
||||||
|
"stcu\"mv\xabcqts\\fasff"
|
||||||
|
"yrnvwfkfuzuoysfdzl\x02bk"
|
||||||
|
"qbdsmlwdbfknivtwijbwtatqfe"
|
||||||
|
"\"erqh\\csjph"
|
||||||
|
"ikfv"
|
||||||
|
"\xd2cuhowmtsxepzsivsvnvsb"
|
||||||
|
"vj"
|
||||||
|
"d"
|
||||||
|
"\\g"
|
||||||
|
"porvg\x62qghorthnc\"\\"
|
||||||
|
"tiks\\kr\"\x0fuejvuxzswnwdjscrk"
|
||||||
|
"xmgfel\"atma\\zaxmlgfjx\"ajmqf"
|
||||||
|
"oz\\rnxwljc\\\"umhymtwh"
|
||||||
|
"wlsxxhm\x7fqx\\gjoyrvccfiner\\qloluqv"
|
||||||
|
"k\\ieq"
|
||||||
|
"xidjj\"ksnlgnwxlddf\\s\\kuuleb"
|
||||||
|
"wjpnzgprzv\\maub\x0cj"
|
||||||
|
"r"
|
||||||
|
"y"
|
||||||
|
"\"yecqiei\"ire\\jdhlnnlde\xc5u"
|
||||||
|
"drvdiycqib"
|
||||||
|
"egnrbefezcrhgldrtb"
|
||||||
|
"plqodxv\\zm\"uodwjdocri\x55ucaezutm"
|
||||||
|
"f\"wexcw\x02ekewx\"alyzn"
|
||||||
|
"pqajwuk\\\\oatkfqdyspnrupo"
|
||||||
|
"rkczj\"fzntabpnygrhamk\\km\x68xfkmr"
|
||||||
|
"wejam\xbac\x37kns"
|
||||||
|
"qqmlwjk\"gh"
|
||||||
|
"fdcjsxlgx"
|
||||||
|
"\\cxvxy\"kb\"\"unubvrsq\\y\\awfhbmarj\\"
|
||||||
|
"geunceaqr"
|
||||||
|
"tpkg\"svvngk\\sizlsyaqwf"
|
||||||
|
"\"pa\\x\x18od\\emgje\\"
|
||||||
|
"ffiizogjjptubzqfuh\"cctieqcdh"
|
||||||
|
"yikhiyyrpgglpos"
|
||||||
|
"h\\"
|
||||||
|
"jotqojodcv"
|
||||||
|
"ervsz\x87ade\"fevq\\tcqowt"
|
||||||
|
"\\y\"fgrxtppkcseeg\\onxjarx\\hyhfn\x5fi"
|
||||||
|
"kxndlabn\\wwumctuzdcfiitrbnn"
|
||||||
|
"eoosynwhwm"
|
||||||
|
"\"c\x04"
|
||||||
|
"ny\xf6vuwlec"
|
||||||
|
"ubgxxcvnltzaucrzg\\xcez"
|
||||||
|
"pnocjvo\\yt"
|
||||||
|
"fcabrtqog\"a\"zj"
|
||||||
|
"o\\bha\\mzxmrfltnflv\xea"
|
||||||
|
"tbfvzwhexsdxjmxejwqqngzixcx"
|
||||||
|
"wdptrakok\"rgymturdmwfiwu"
|
||||||
|
"reffmj"
|
||||||
|
"lqm"
|
||||||
|
"\\oc"
|
||||||
|
"p\""
|
||||||
|
"ygkdnhcuehlx"
|
||||||
|
"vsqmv\"bqay\"olimtkewedzm"
|
||||||
|
"isos\x6azbnkojhxoopzetbj\xe1yd"
|
||||||
|
"yo\\pgayjcyhshztnbdv"
|
||||||
|
"fg\"h"
|
||||||
|
"vcmcojolfcf\\\\oxveua"
|
||||||
|
"w\"vyszhbrr\"jpeddpnrjlca\x69bdbopd\\z"
|
||||||
|
"jikeqv"
|
||||||
|
"\"dkjdfrtj"
|
||||||
|
"is"
|
||||||
|
"hgzx"
|
||||||
|
"z\""
|
||||||
|
"woubquq\\ag\""
|
||||||
|
"xvclriqa\xe6ltt"
|
||||||
|
"tfxinifmd"
|
||||||
|
"mvywzf\"jz"
|
||||||
|
"vlle"
|
||||||
|
"c\"rf\"wynhye\x25vccvb\""
|
||||||
|
"zvuxm"
|
||||||
|
"\xf2\"jdstiwqer\"h"
|
||||||
|
"kyogyogcknbzv\x9f\\\\e"
|
||||||
|
"kspodj\"edpeqgypc"
|
||||||
|
"oh\\x\\h"
|
||||||
|
"julb"
|
||||||
|
"bmcfkidxyilgoy\\xmu\"ig\\qg"
|
||||||
|
"veqww\"ea"
|
||||||
|
"fkdbemtgtkpqisrwlxutllxc\"mbelhs"
|
||||||
|
"e"
|
||||||
|
"ecn\x50ooprbstnq"
|
||||||
|
"\"\xe8\"ec\xeah\"qo\\g\"iuqxy\"e\"y\xe7xk\xc6d"
|
||||||
|
"lwj\"aftrcqj"
|
||||||
|
"jduij\x97zk\"rftjrixzgscxxllpqx\"bwwb"
|
||||||
|
"fqcditz"
|
||||||
|
"f\x19azclj\"rsvaokgvty\"aeq"
|
||||||
|
"erse\x9etmzhlmhy\x67yftoti"
|
||||||
|
"lsdw\xb3dmiy\\od"
|
||||||
|
"x\x6fxbljsjdgd\xaau"
|
||||||
|
"hjg\\w\"\x78uoqbsdikbjxpip\"w\"jnhzec"
|
||||||
|
"gk"
|
||||||
|
"\\zrs\\syur"
|
16
TypeScript/day8/package.json
Normal file
16
TypeScript/day8/package.json
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"scripts": {
|
||||||
|
"lint": "prettier solution_a.ts solution_b.ts --write --print-width=120",
|
||||||
|
"a": "ts-node solution_a.ts",
|
||||||
|
"b": "ts-node solution_b.ts"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"prettier": "^2.1.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": "^14.14.8",
|
||||||
|
"ts-node": "^9.0.0",
|
||||||
|
"typescript": "^4.0.5"
|
||||||
|
},
|
||||||
|
"license": "WTFPL"
|
||||||
|
}
|
9
TypeScript/day8/solution_a.ts
Normal file
9
TypeScript/day8/solution_a.ts
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import * as fs from "fs";
|
||||||
|
const input = fs.readFileSync("input").toString();
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
const lines = input.split("\n").map((line) => line.trim());
|
||||||
|
return lines.reduce((prev, line) => prev + (line.length - eval(line).length), 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
main().then(console.log).catch(console.error);
|
15
TypeScript/day8/solution_b.ts
Normal file
15
TypeScript/day8/solution_b.ts
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import * as fs from "fs";
|
||||||
|
const input = fs.readFileSync("input").toString();
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
const lines = input.split("\n").map((line) => line.trim());
|
||||||
|
let result = 0;
|
||||||
|
for (const line of lines) {
|
||||||
|
const replaced = '"' + line.replace(/\\/g, "\\\\").replace(/"/g, '\\"') + '"';
|
||||||
|
result += replaced.length - line.length;
|
||||||
|
console.log(line, replaced);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
main().then(console.log).catch(console.error);
|
69
TypeScript/day8/tsconfig.json
Normal file
69
TypeScript/day8/tsconfig.json
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
||||||
|
|
||||||
|
/* Basic Options */
|
||||||
|
// "incremental": true, /* Enable incremental compilation */
|
||||||
|
"target": "ES2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
||||||
|
"module": "CommonJS", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
||||||
|
// "lib": [], /* Specify library files to be included in the compilation. */
|
||||||
|
// "allowJs": true, /* Allow javascript files to be compiled. */
|
||||||
|
// "checkJs": true, /* Report errors in .js files. */
|
||||||
|
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
||||||
|
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
||||||
|
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
||||||
|
"sourceMap": false, /* Generates corresponding '.map' file. */
|
||||||
|
// "outFile": "./", /* Concatenate and emit output to single file. */
|
||||||
|
// "outDir": "./", /* Redirect output structure to the directory. */
|
||||||
|
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
||||||
|
// "composite": true, /* Enable project compilation */
|
||||||
|
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
||||||
|
// "removeComments": true, /* Do not emit comments to output. */
|
||||||
|
"noEmit": true, /* Do not emit outputs. */
|
||||||
|
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
||||||
|
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
||||||
|
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
||||||
|
|
||||||
|
/* Strict Type-Checking Options */
|
||||||
|
"strict": true, /* Enable all strict type-checking options. */
|
||||||
|
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
||||||
|
// "strictNullChecks": true, /* Enable strict null checks. */
|
||||||
|
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
||||||
|
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
||||||
|
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
||||||
|
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
||||||
|
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
||||||
|
|
||||||
|
/* Additional Checks */
|
||||||
|
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
||||||
|
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
||||||
|
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||||
|
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||||
|
|
||||||
|
/* Module Resolution Options */
|
||||||
|
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
||||||
|
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
||||||
|
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
||||||
|
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
||||||
|
// "typeRoots": [], /* List of folders to include type definitions from. */
|
||||||
|
// "types": [], /* Type declaration files to be included in compilation. */
|
||||||
|
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
||||||
|
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
||||||
|
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
||||||
|
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
||||||
|
|
||||||
|
/* Source Map Options */
|
||||||
|
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
||||||
|
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
||||||
|
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
||||||
|
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
||||||
|
|
||||||
|
/* Experimental Options */
|
||||||
|
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
||||||
|
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
||||||
|
|
||||||
|
/* Advanced Options */
|
||||||
|
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
||||||
|
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
||||||
|
}
|
||||||
|
}
|
67
TypeScript/day8/yarn.lock
Normal file
67
TypeScript/day8/yarn.lock
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||||
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
|
"@types/node@^14.14.8":
|
||||||
|
version "14.14.8"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.8.tgz#2127bd81949a95c8b7d3240f3254352d72563aec"
|
||||||
|
integrity sha512-z/5Yd59dCKI5kbxauAJgw6dLPzW+TNOItNE00PkpzNwUIEwdj/Lsqwq94H5DdYBX7C13aRA0CY32BK76+neEUA==
|
||||||
|
|
||||||
|
arg@^4.1.0:
|
||||||
|
version "4.1.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
|
||||||
|
integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==
|
||||||
|
|
||||||
|
buffer-from@^1.0.0:
|
||||||
|
version "1.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
|
||||||
|
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==
|
||||||
|
|
||||||
|
diff@^4.0.1:
|
||||||
|
version "4.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
|
||||||
|
integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==
|
||||||
|
|
||||||
|
make-error@^1.1.1:
|
||||||
|
version "1.3.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
|
||||||
|
integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==
|
||||||
|
|
||||||
|
prettier@^2.1.2:
|
||||||
|
version "2.1.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5"
|
||||||
|
integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==
|
||||||
|
|
||||||
|
source-map-support@^0.5.17:
|
||||||
|
version "0.5.19"
|
||||||
|
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61"
|
||||||
|
integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==
|
||||||
|
dependencies:
|
||||||
|
buffer-from "^1.0.0"
|
||||||
|
source-map "^0.6.0"
|
||||||
|
|
||||||
|
source-map@^0.6.0:
|
||||||
|
version "0.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
|
||||||
|
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
|
||||||
|
|
||||||
|
ts-node@^9.0.0:
|
||||||
|
version "9.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.0.0.tgz#e7699d2a110cc8c0d3b831715e417688683460b3"
|
||||||
|
integrity sha512-/TqB4SnererCDR/vb4S/QvSZvzQMJN8daAslg7MeaiHvD8rDZsSfXmNeNumyZZzMned72Xoq/isQljYSt8Ynfg==
|
||||||
|
dependencies:
|
||||||
|
arg "^4.1.0"
|
||||||
|
diff "^4.0.1"
|
||||||
|
make-error "^1.1.1"
|
||||||
|
source-map-support "^0.5.17"
|
||||||
|
yn "3.1.1"
|
||||||
|
|
||||||
|
typescript@^4.0.5:
|
||||||
|
version "4.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389"
|
||||||
|
integrity sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==
|
||||||
|
|
||||||
|
yn@3.1.1:
|
||||||
|
version "3.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
|
||||||
|
integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==
|
Loading…
Reference in a new issue