refactor: move exported type definitions to declaration file (#6300)

* refactor: move exported type definitions to declaration file

* fix

* fix
This commit is contained in:
Joshua Chen 2022-01-09 22:02:31 +08:00 committed by GitHub
parent 9c0e659a44
commit cf265c051e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 482 additions and 452 deletions

View file

@ -8,14 +8,10 @@
import React from 'react';
import Head from '@docusaurus/Head';
import type {SearchMetadataProps} from '@theme/SearchMetadata';
import type {Props} from '@theme/SearchMetadata';
// Override default/agnostic SearchMetas to use Algolia-specific metadata
function SearchMetadata({
locale,
version,
tag,
}: SearchMetadataProps): JSX.Element {
function SearchMetadata({locale, version, tag}: Props): JSX.Element {
// Seems safe to consider here the locale is the language,
// as the existing docsearch:language filter is afaik a regular string-based filter
const language = locale;