You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ First of let me say that I have been putting of this blog post for quite a while
9
9
I am a little afraid that I am not going to do TypeScript justice.
10
10
The reason for that is that we are going to use it heavily - but in a rather indirect way.
11
11
12
-
See - we are a big fan of a [buildless]() development setup. We have [a post]() or [two]() about it :grimmacing:
12
+
See - we are a big fan of a [buildless](https://dev.to/open-wc/on-the-bleeding-edge-3cb8) development setup. We have [a post](https://dev.to/open-wc/developing-without-a-build-1-introduction-26ao) or [two](https://dev.to/open-wc/developing-without-a-build-2-es-dev-server-1cf5) about it 😬
13
13
It is [our belief](https://open-wc.org/about/rationales.html) that it is the best way to bring developers (you) and the platform (browser) back on the same table.
14
14
15
15
Knowing this makes it hard to root for TypeScript as it is a [Transpiler Language]() - in other words, it requires a build step.
@@ -27,7 +27,7 @@ expect(square(2)).to.equal(4);
27
27
expect(square('two')).to.equal(4);
28
28
```
29
29
30
-
Our plan is to accept a number and a string and return the power of it with the default of power of 2 (e.g. square it).
30
+
Our plan is to accept a number or string and return the square of it.
31
31
32
32
Let's implement it with TypeScript:
33
33
@@ -42,7 +42,7 @@ So yeah I know what you have been thinking - a string as an argument?
42
42
While implementing we found out that it was a bad idea.
43
43
And thanks to the power of types we can just go back to our code/tests and tada we immediately see in vscode that `square('two')` is not working.
0 commit comments