Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spmaxwell7
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
spmaxwell7
2mo ago
This is more of a personal preference thing, but I like to code in a top-down format, and because of the way hoisting works in TypeScript/JavaScript. I separate my files into regions in this order: Constants -> Types -> Classes (
2.
▲
Tspo: A zero-dependency TypeScript utility library for plain-object workflows
(github.com)
1 points
by
spmaxwell7
9mo ago
|
1 comments
3.
▲
by
spmaxwell7
9mo ago
Hey all, I just released tspo and wanted to share it for feedback. It’s a small utility library focused on plain-objects, with runtime checks and strong TS inference in the same API. I love TypeScript but the reason I created this is becaus
4.
▲
Jet-validators is now the fastest non- compiled schema validation library
(moltar.github.io)
1 points
by
spmaxwell7
11mo ago
|
0 comments
5.
▲
Bdir: The latest and greatest replacement for TypeScript enums
(github.com)
3 points
by
spmaxwell7
11mo ago
|
1 comments
6.
▲
by
spmaxwell7
11mo ago
I’d been using TypeScript enums for a long time because they were a convenient one-stop solution: an enumerable runtime object and a union type of all possible values. After upgrading my React + Vite setup, I started hitting type errors due
7.
▲
Jet-Validators
(github.com)
1 points
by
spmaxwell7
2y ago
|
1 comments
8.
▲
by
spmaxwell7
2y ago
This is a list of common typescript validator functions to shorten your application's boolean logic. It also contains some utility functions for transforming values before validating them and also validating object schemas. It isn'
9.
▲
Hey everyone, I created a TypeScript schema validation library
(github.com)
2 points
by
spmaxwell7
2y ago
|
1 comments
10.
▲
by
spmaxwell7
2y ago
So most TypeScript/JavaScript schema-validation libraries have all kinds of fancy functions for validating everything you could think of under the sun (objects as well as primitives). Problem for me was I already had all kinds of funct