Typescript SDK for codeforces ## Hello codeforces!
You know you are a programming competitions addict when [this blog](https://codeforces.me/blog/entry/12968) was 9 years ago, but you thought it was no more than 3...
More than month ago or, to be more precise from 15 to 19 December 2022, codeforces has five contests in five days. I participated in all of these contests and I thought how many contestants took part in all 5 contests?
**TLDR**: If you don't want to read why I decided to implement SDK on typescript and how I struggled with python, just scroll down to Typescript paragraph.
**TLDR2**: Links are below.
## Python
Historically I have some python scripts to work with codeforces API, so I've created `allContests.py` file, imported my old library code with method `cf` and paused for a while. Which arguments does this method have? Let's look into source code. Ah, clear, `def cf(method, **kwargs)`.
F**k. OK, let's go to [API](https://codeforces.me/apiHelp/methods#contest.standings) page. O...
Typescript SDK for codeforces, `require`) in typescript. For all other things there is mastercard ffi., all 5 contests? **TLDR**: If you don't want to read why I decided to implement
SDK ontypescript, ## Typescript! Unlike javascript and python typescript has static typing. And
types really help, ### Aliases Secondly, typescript allows creating **implicitlty unconvertible**
type aliases., ### Can I use typescript in contests? Yes, but no., **PS**: I know that typescript transpiles, not compiles but in this context it
doesn't matter., **TLDR**: If you don't want to read why I decided to implement SDK on typescript
and how I, So I decided to implement API wrapper on typescript., So, why typescript? I use typescript during couple of years and know that it
has some pros:, Typescript:, With my sdk I've implemented typescript analog of bugaboo above within 10
minutes without looking, ```typescript const multipleStandings = async ( options: Omit, ```typescript type DefaultApiOptions = { lang?: AvailableLanguages } & ({} | {
secret, ```typescript type First = number & { __unique__: 'first' } type Second =
number & { __unique__, typescript that you know what you do.
Full text and comments »