Junyoung Choi
|
34bc9e60fe
|
Remove unused generic N
|
2017-09-08 00:43:23 +09:00 |
|
Junyoung Choi
|
e59a1c296a
|
Pass generic directly if it instantiate without any other options except contents
|
2017-09-08 00:19:36 +09:00 |
|
Junyoung Choi
|
37207e1e55
|
Delete generic D which was represented as data property.
`data` also can be decided by `C`.
|
2017-09-07 10:11:03 +09:00 |
|
Junyoung Choi
|
9a6f7da2bb
|
Fix a test case by the description
Should test with Node type with extra properties.
|
2017-09-07 03:48:33 +09:00 |
|
Junyoung Choi
|
fc6a0fb8fa
|
Fix conflicts
|
2017-09-07 03:44:50 +09:00 |
|
Junyoung Choi
|
f161e0e4e1
|
Fix wrong variable name
One of case must use point
|
2017-09-07 03:06:23 +09:00 |
|
Junyoung Choi
|
3dd0a90cb7
|
Fix rollback Node
Position is not supposed to be extensible, but Node is.
Testing cases for this are also added.
|
2017-09-07 02:59:33 +09:00 |
|
Junyoung Choi
|
798233d7a5
|
Accept Position with extra properties
Delete `Node` interface because we are needed to check the properties about position only.
|
2017-09-07 02:12:27 +09:00 |
|
Junyoung Choi
|
0f323cae55
|
Use never because it always throw an error
https://basarat.gitbooks.io/typescript/docs/types/never.html
|
2017-09-07 02:04:06 +09:00 |
|
Junyoung Choi
|
65698d1e24
|
Update comment
|
2017-09-07 01:01:53 +09:00 |
|
Junyoung Choi
|
ec9ef2c302
|
Add failure scenario
Original properties must be kept!
|
2017-09-07 00:57:19 +09:00 |
|
Junyoung Choi
|
34b2133e83
|
Exploit generics to assert typings of custom data
|
2017-09-07 00:41:24 +09:00 |
|
Junyoung Choi
|
61cf931b24
|
Add more option for position arguments
It also can be Node.
So, I've extracted type for this argument as StringifiablePosition, which is `Point | Position | Node`.
|
2017-09-06 23:13:55 +09:00 |
|
Junyoung Choi
|
08c0fcffbd
|
Add more type of argument for position
It can take both Position and Point
|
2017-09-06 21:54:08 +09:00 |
|
Junyoung Choi
|
7eb5ba8714
|
Fix typings for vfile by the guide of the author
|
2017-09-06 21:54:00 +09:00 |
|
Junyoung Choi
|
122500f99f
|
Add VFile
|
2017-09-06 20:52:34 +09:00 |
|
bizen241
|
341edc76fa
|
[vfile]: add types
|
2017-09-01 01:48:38 +09:00 |
|