Skip to content

Add strict typings via TypeScript#10

Merged
koskimas merged 1 commit into
Vincit:masterfrom
tgriesser:typescript
Aug 8, 2018
Merged

Add strict typings via TypeScript#10
koskimas merged 1 commit into
Vincit:masterfrom
tgriesser:typescript

Conversation

@tgriesser

Copy link
Copy Markdown
Contributor

Hey @koskimas not sure if this is something you're interested in, but as I'm preparing a path forward for knex to begin to use TypeScript for things I was looking at what dependencies have type definitions via DefinitelyTyped. As tarn didn't I thought I'd make a PR to add them, but then instead took a few minutes and added types to the whole module.

As you can probably tell from the diff, there aren't any implementation changes, just a few things around the emitted require's. If you'd rather keep things simpler in pure JS with no build step, I can just consolidate all of the type definitions into a single d.ts and reopen with a PR for that.

@koskimas

koskimas commented Jul 9, 2018

Copy link
Copy Markdown
Collaborator

@tgriesser Absolutely interested, thank you! Tarn was basically created for knex and I think it should follow the direction knex takes. I'll review and merge this a bit later if that's okay?

@tgriesser

Copy link
Copy Markdown
Contributor Author

Sure thing, no rush at all.

@tgriesser

Copy link
Copy Markdown
Contributor Author

Up to you if you want to .gitignore lib, I mostly kept it in here so you could review the diff of the output.

@koskimas
koskimas merged commit 3245d39 into Vincit:master Aug 8, 2018
@koskimas

koskimas commented Aug 8, 2018

Copy link
Copy Markdown
Collaborator

@tgriesser Feel free to push straight to master in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants