]> git.kaiwu.me - njs.git/commit
Types: fixed index types in modules.
authorJakub Jirutka <jakub@jirutka.cz>
Mon, 19 Oct 2020 21:18:22 +0000 (23:18 +0200)
committerJakub Jirutka <jakub@jirutka.cz>
Mon, 19 Oct 2020 21:18:22 +0000 (23:18 +0200)
commite50ce2eb14b3c6b85096092183e447563694174b
tree1676f8b277ef3a57d0b41fa113e9abbabeb8aeaf
parent9f23a9c5beff2e598bb8ff968925e5f0539462d4
Types: fixed index types in modules.

Fixes the following type errors:
    Property ''xxx'' of type 'NjsByteString | undefined' is not
    assignable to string index type 'NjsStringLike'.ts(2411)

While string index signatures are a powerful way to describe the
"dictionary" pattern, they also enforce that all properties match
their return type.
ts/ngx_http_js_module.d.ts
ts/ngx_stream_js_module.d.ts