mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* add(mustache): better mustache.parse return type
Currently mustache.parse has `any` as its return type which is more
permissive than necessary.
I've ran though the mustache docs to create some test cases for the return
types:
https://mustache.github.io/mustache.5.html
and the test cases:
https://runkit.com/sbdchd/5e4bf8f70a83de0014e082ed
I also did a partial conversion of mustache.mjs to typescript to figure
out the return types:
https://gist.github.com/sbdchd/449c409648fd4c5120386bbc3fc683f2#file-mustache-ts-L113-L277
So I think this return types should be accurate.
Note that since this is a recursive type we need to set the minimum
version in the index.d.ts header otherwise the linter complains.
* bump: node-vault required typescript version
* update(mustache): name variants in mustache.parse return type
Use the mustache terminology for its variants instead of only using the
values.
|
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| node-vault-tests.ts | ||
| tsconfig.json | ||
| tslint.json | ||