mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 04:57:05 +02:00
refactor: ensure all types are using index signature instead of Record (#6995)
* refactor: ensure all types are using index signature instead of Record * kick CI
This commit is contained in:
parent
e8800b9d49
commit
87592bca03
99 changed files with 339 additions and 307 deletions
|
@ -12,14 +12,14 @@ import {normalizeThemeConfig} from '@docusaurus/utils-validation';
|
|||
import theme from 'prism-react-renderer/themes/github';
|
||||
import darkTheme from 'prism-react-renderer/themes/dracula';
|
||||
|
||||
function testValidateThemeConfig(partialThemeConfig: Record<string, unknown>) {
|
||||
function testValidateThemeConfig(partialThemeConfig: {[key: string]: unknown}) {
|
||||
return normalizeThemeConfig(ThemeConfigSchema, {
|
||||
...DEFAULT_CONFIG,
|
||||
...partialThemeConfig,
|
||||
});
|
||||
}
|
||||
|
||||
function testOk(partialThemeConfig: Record<string, unknown>) {
|
||||
function testOk(partialThemeConfig: {[key: string]: unknown}) {
|
||||
expect(
|
||||
testValidateThemeConfig({...DEFAULT_CONFIG, ...partialThemeConfig}),
|
||||
).toEqual({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue