mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +02:00
test: strengthen internal types (#7488)
This commit is contained in:
parent
d50fe3b670
commit
cd21a31005
15 changed files with 67 additions and 55 deletions
|
@ -71,6 +71,6 @@ export class ReactContextError extends Error {
|
|||
this.message = `Hook ${
|
||||
this.stack?.split('\n')[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups!
|
||||
.name ?? ''
|
||||
} is called outside the <${providerName}>. ${additionalInfo || ''}`;
|
||||
} is called outside the <${providerName}>. ${additionalInfo ?? ''}`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue