(docs): fixed module.exports error (#44364)

This commit is contained in:
0xflotus
2020-05-19 23:29:56 +02:00
committed by GitHub
parent 3b61c0924e
commit 8f2952d332

View File

@@ -52,7 +52,7 @@ Constraints which you should consider:
```ts
// Cannot have `export default` in the dts
modele.exports = {
module.exports = {
thing: () => "hello world"
}
```
@@ -61,7 +61,7 @@ Constraints which you should consider:
```ts
// Can import via `export default`
modele.exports.default = {
module.exports.default = {
thing: () => "hello world"
}
```