mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
(docs): fixed module.exports error (#44364)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user