I hereby claim:
- I am alecvision on github.
- I am alecvision (https://keybase.io/alecvision) on keybase.
- I have a public key ASDB3avrji3Hg_JqwQt53hajvrL-OipCnJdNoYecN-4NFAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The first solution is my own, and the following solutions were sourced from the Michigan TypeScript Youtube Channel and xinchaobeta's solution, respectively.
// @noImplicitAny
// @strict
export type IsNegativeNum<T extends number | string | null> = TrimLeft<
`${T}`,
" "
> extends `-${infer Val extends string}`
# What is my vote if I don't vote at all? Is it a `null` vote, or is 0 the | |
# automatic default vote for non-voters? | |
# If `null` vote is the default: After I vote, but before the deadline, I can | |
# change my vote—including changing it to 0. Can I un-vote by setting it to `null`? | |
# Are vote windows limited in duration? i.e. do questions have an expiration | |
# (or vote-by) date? Or, is it more of a 'ranking' system where vote windows are | |
# unlimited in duration and a 'snapshot' of the votes is taken at some point | |
# (or multiple points) in time? | |
openapi: 3.0.0 |
{ | |
"openapi": "3.1.0", | |
"info": { | |
"title": "Tulsa WebDevs Voting Service", | |
"description": "API for casting votes on various topics/projects and submitting and managing proposals with a ranking and voting system.", | |
"version": "0.0.2" | |
}, | |
"servers": [ | |
{ | |
"url": "http://vote.tulsawebdevs. org", |