@insightphp/inertia-view
Version:
View abstraction layer for building architectured Inertia applications.
11 lines (10 loc) • 421 B
TypeScript
/**
* Resolve common path prefix for given list of paths.
* Paths must be within same directory for this function to work.
* Given path list:
* - ./Components/User.vue
* - ./Components/Customers/Avatar.vue
* - ./Components/Customers/Settings.vue
* will resolve to "./Components/" since this is the common base path for all paths.
*/
export declare function resolveCommonBasePath(paths: Array<string>): string;