refactor: fix a few type inconsistencies (#5788)

This commit is contained in:
Joshua Chen 2021-10-27 17:53:08 +08:00 committed by GitHub
parent 075234851c
commit 72990726e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 28 additions and 20 deletions

View file

@ -18,7 +18,6 @@ import {
TranslationFile,
} from '@docusaurus/types';
// @ts-expect-error: no typedefs :s
import resolvePathnameUnsafe from 'resolve-pathname';
import {posixPath as posixPathImport} from './posixPath';

View file

@ -0,0 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
declare module 'resolve-pathname' {
export default function resolvePathname(to: string, from?: string): string;
}