List of TypeScript Kata to Update - codewars/content-issues Wiki
We have TypeScript kata stuck in 2.x that must be updated before adding a newer version.
Background
Since TypeScript 3.x, we changed to use --strict
and stopped concatenating with the optional preloaded code.
After running a script to automatically update existing kata, we found that most of them are written like JavaScript (contains implicit any
in reference solutions or test helpers). Also, many of them doesn't follow best practices (e.g., unnecessary class with static method is exported).
How to Update
Use the new "Fork" feature to update kata:
You don't need to open an issue/suggestion and wait to edit. Forking a kata in a language is similar to forking an approved translation, but better because
- all languages can be forked, including those added directly in Kata Editor and the original language
- it's never outdated because it forks from the kata
You should see "Fork" when viewing a kata with the language you've completed in selected. Click that to open a translation editor with the current version filled in. The proposed changes can be merged or rejected after publishing, just like translations.
If there's a /// <reference
comment, remove them as well.
For most errors, solutions shouldn't be invalidated if it's written properly.
If a kata uses preloaded code, it needs to be imported explicitly (import { foo } from "./preloaded"
). This might invalidate solutions depending on the usage.
Also, consider fixing unidiomatic TypeScript:
- Using static methods in unnecessary class instead of simple function.
- Extending prototypes of builtins
Don't worry about invalidating solutions.
List of Kata
The following kata must be updated. Any help will be appreciated.
- Crazy Arrays
- Easy Cyclist's Training
- Euler's method for a first-order ODE
- Gap in Primes
- Getting along with Integer Partitions
- Going to the cinema
- Going to zero or to infinity?
- Growth of a Population
- Hëävÿ Mëtäl Ümläüts
- Help Kiyo きよ solve her problems LCM Fun!
- Help Suzuki count his vegetables....
- Help Suzuki rake his garden!
- Help the bookseller !
- Help your granny!
- Hero's root
- Integers: Recreation One
- Integers: Recreation Two
- Irreducible Sum of Rationals
- Is my friend cheating?
- Is It Negative Zero (-0)?
- isReallyNaN
- Jenny's secret message
- John and Ann sign up for Codewars
- k-Primes
- Looking for a benefactor
- Magnet particules in boxes
- Maximum Length Difference
- Mexican Wave
- Min Factor Distance
- Mirror object - tcejbo rorriM
- MOD 256 without the MOD operator
- Moduli number system
- Molecule to atoms
- New £5 notes collectors!
- Nice Array
- Ninja vs Samurai: Strike
- Number of Divisions
- Numbers with this digit inside
- Odd-Even String Sort
- Parabolic Arc Length
- Parts of a list
- Perimeter of squares in a rectangle
- Phone Directory
- PI approximation
- Pie Chart
- Pigs in a Pen
- Ping Pong
- Playing on a chessboard
- Playing with cubes II
- Playing with passphrases
- Pong! [Basics]
- Predict your age!
- Primes in numbers
- Printer Errors
- Prize Draw
- Product of consecutive Fib numbers
- Projectile Motion
- Pure Functions
- Rainfall
- Rectangle into Squares
- Reducing by rules to get the result
- Reducing by steps
- Regexp Basics - is it a digit?
- Street Fighter 2 - Character Selection - Part 2