DefinitelyTyped/types/node-vault
Steve Dignam 6dd7b4f116
add(mustache): better mustache.parse return type (#42468)
* 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.

aca97b82c8/mustache.mjs (L560-L565)
2020-02-25 10:51:05 -08:00
..
index.d.ts
node-vault-tests.ts
tsconfig.json
tslint.json