@sayknow-cli/utils 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +0,0 @@
1
- export declare function isRecord(value: unknown): value is Record<string, unknown>;
2
- export declare function asRecord(value: unknown): Record<string, unknown> | null;
3
- export declare function toError(value: unknown): Error;
@@ -1,37 +0,0 @@
1
- /**
2
- * Cache policy for which lookups.
3
- */
4
- export declare const enum WhichCachePolicy {
5
- /**
6
- * Use cached result if available.
7
- */
8
- Cached = 0,
9
- /**
10
- * Bypass cache and perform a new lookup.
11
- */
12
- Bypass = 1,
13
- /**
14
- * Always update cache.
15
- */
16
- Fresh = 2,
17
- /**
18
- * Read-only, serves from cache if present, but doesn't write.
19
- */
20
- ReadOnly = 3
21
- }
22
- export interface WhichOptions extends Bun.WhichOptions {
23
- /**
24
- * Cache policy for the lookup.
25
- * Defaults to `WhichCachePolicy.Fresh`.
26
- */
27
- cache?: WhichCachePolicy;
28
- }
29
- export declare const whichFresh: typeof Bun.which;
30
- /**
31
- * Locate binary on PATH (with flexible caching).
32
- *
33
- * @param command - Binary name to resolve
34
- * @param options - Bun.WhichOptions plus `cache` control
35
- * @returns Filesystem path if found, else null
36
- */
37
- export declare function $which(command: string, options?: WhichOptions): string | null;