API reference > @kontsedal/olas-devtools > formatPath
formatPath() function
Render a controller path / query key as a compact string. An object member of a key renders as JSON cut at 60 characters, so ['users', { page: 1 }] and ['users', { page: 2 }] read differently. Never throws, so a null-prototype object in a key renders too.
Signature:
typescript
export declare function formatPath(path: readonly unknown[]): string;Parameters
Parameter | Type | Description |
|---|---|---|
path | readonly unknown[] |
Returns:
string