Skip to content

Commit

Permalink
fix: try avoid dome typescript setting show error (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers authored Apr 22, 2020
1 parent f6380a9 commit 8cf7fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
*/
declare function sortPackageJsonCore<T extends Record<any, any>>(packageJson: T, options?: sortPackageJsonCore.Options): T;
declare namespace sortPackageJsonCore {
var sortPackageJson: typeof sortPackageJsonCore;
var sortPackageJson: <T extends Record<any, any>>(packageJson: T, options?: sortPackageJsonCore.Options) => T;
// @ts-ignore
var default: typeof sortPackageJsonCore;
var default: <T extends Record<any, any>>(packageJson: T, options?: sortPackageJsonCore.Options) => T;
}
declare namespace sortPackageJsonCore {
type ComparatorFunction = (left: string, right: string) => number;
Expand Down

0 comments on commit 8cf7fa7

Please sign in to comment.