mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: loader.reloadPlugin: remove first arg
This commit is contained in:
5 files changed
+13
-8
No files matched your search
@@ -211,7 +211,7 @@ export type StringKeys<O> = {
|
||||
}[keyof O];
|
||||
const fSortR = /[^\d]+|\d+/g;
|
||||
export function sortFiles(files: string[]): string[];
|
||||
export function sortFiles(files: { _id: string }[], key?: '_id'): { _id: string }[];
|
||||
export function sortFiles<T extends { _id: string }>(files: T[], key?: '_id'): T[];
|
||||
export function sortFiles<T extends Record<string, any>>(files: T[], key: StringKeys<T>): T[];
|
||||
export function sortFiles(files: Record<string, any>[] | string[], key = '_id') {
|
||||
if (!files?.length) return [];
|
||||
|
||||
Reference in new issue
Block a user