litt icon indicating copy to clipboard operation
litt copied to clipboard

Add strict-as-you-can type checking to litt using TypeScript

Open lf94 opened this issue 7 years ago • 4 comments

Another easy fun activity for Hacktoberfest. Lets see litt be type safe :D

lf94 avatar Sep 28 '17 17:09 lf94

Hi, I'd love to work on this. what do you exactly want?

wildan3105 avatar Sep 28 '17 18:09 wildan3105

Exactly as it says in the title. Add type definition, types to litt ,and try to make use of many TypeScript utilities.

lf94 avatar Sep 28 '17 19:09 lf94

I can work on it but TS will yell about the fact there is nothing exported and all variables are not declared. Maybe we can add a build step using sed 's/(const|let|var|export)\s//' to remove declaration keywords.

Swizz avatar Oct 09 '17 18:10 Swizz

It is ok to modify it to be TS compliant. 👍 Yes add a npm script to build this TS version.

On Oct 9, 2017 2:44 PM, "Quentin Gerodel" [email protected] wrote:

I can work on it but TS will yell about the fact there is nothing exported and all variables are not declared. Maybe we can add a build step using sed 's/(const|let|var|export)\s//' to remove declaration keywords.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lf94/litt/issues/3#issuecomment-335251911, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhcU2a5-OcvLkqlcc7D_7oFB0ZzP_bGks5sqmmIgaJpZM4PnpoX .

lf94 avatar Oct 09 '17 22:10 lf94