ts-lol

ts-lol ========

Usage no npm install needed!

<script type="module">
  import tsLol from 'https://cdn.skypack.dev/ts-lol';
</script>

README

ts-lol

When the typescript compiler gets you down, don't get mad -- get even! Express your distaste for static types and show tsc that you mean business with ts-lol!

Geting started

npm install --save-dev ts-lol

Then, use ts-lol's expressive type library to cast your way to a successful compile!

import { lol } from "ts-lol";
const x: number = <lol> "not a number";
let y = ["what", "a", "cool", "string", "array"];
y = <nope> {"not": "anymore!"};
y = <nah> {"huh?": "still no"};
interface Spam {
  eggs(howMany: string): number;
}

const spam: Spam = <welcometotypescriptwhereeverythingsmadeupandthetypesdontmatter> 5;
console.log(spam.eggs("100")); // We'll have to find out at runtime!

Contributions welcome, many more types coming soon!

License

JSON