mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 08:57:03 +02:00
refactor: fix a few type inconsistencies (#5788)
This commit is contained in:
parent
075234851c
commit
72990726e5
11 changed files with 28 additions and 20 deletions
|
@ -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';
|
||||
|
|
10
packages/docusaurus-utils/src/types.d.ts
vendored
Normal file
10
packages/docusaurus-utils/src/types.d.ts
vendored
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue