Hi.
This PR solves 2 problems so as to utilize the API with TypeScript.
It's needed to write export = PWMetrics instead of module.exports = PWMetrics for TypeScript. export = is converted into module.exports = end it provides to TypeScript compiler the information that PWMetrics is exported.
It's needed to wrap FeatureFlags by Partial in order to avoid writing all properties. As reading this library's document, it seems that we don't have to enumerate all flags.
Hi. This PR solves 2 problems so as to utilize the API with TypeScript.
export = PWMetrics
instead ofmodule.exports = PWMetrics
for TypeScript.export =
is converted intomodule.exports =
end it provides to TypeScript compiler the information thatPWMetrics
is exported.FeatureFlags
byPartial
in order to avoid writing all properties. As reading this library's document, it seems that we don't have to enumerate all flags.