@canard/schema-form
Version:
React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components
9 lines (8 loc) • 378 B
TypeScript
/**
* Strips the fragment from the path and normalizes root representations.
* @param path - The path to strip the fragment from.
* @note Use string literal type to execute faster.
* @note `#`, `#/`, `/` alone are treated as root and normalized to `''`.
* @returns The normalized path without the fragment.
*/
export declare const stripFragment: (path: string) => string;