Files
klz-cables.com/.pnpm-store/v10/files/fe/7a913698967093842fc5d97102547fbb0416a4fb2689d3b6f088f643be6434c940a6367e9009a92473d6c8d486b683bcb6703839a7da2ee28ff3535c4f6abc
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

63 lines
1.4 KiB
Plaintext

export interface Options {
/* a list of files to search */
files?: string[]
/* the directory to search from */
cwd?: string
/* the directory to stop searching */
stopDir?: string
/* the key in package.json to read data at */
packageKey?: string
/* the function used to parse json */
parseJSON?: (str: string) => any
}
export interface LoadResult {
/* file path */
path?: string
/* file data */
data?: any
}
export interface AsyncLoader {
/** Optional loader name */
name?: string
test: RegExp
load(filepath: string): Promise<any>
}
export interface SyncLoader {
/** Optional loader name */
name?: string
test: RegExp
loadSync(filepath: string): any
}
export interface MultiLoader {
/** Optional loader name */
name?: string
test: RegExp
load(filepath: string): Promise<any>
loadSync(filepath: string): any
}
declare class JoyCon {
constructor(options?: Options)
options: Options
resolve(files?: string[] | Options, cwd?: string, stopDir?: string): Promise<string | null>
resolveSync(files?: string[] | Options, cwd?: string, stopDir?: string): string | null
load(files?: string[] | Options, cwd?: string, stopDir?: string): Promise<LoadResult>
loadSync(files?: string[] | Options, cwd?: string, stopDir?: string): LoadResult
addLoader(loader: AsyncLoader | SyncLoader | MultiLoader): this
removeLoader(name: string): this
/** Clear internal cache */
clearCache(): this
}
export default JoyCon