smartpath/dist/smartpath.get.d.ts

10 lines
495 B
TypeScript
Raw Normal View History

export declare type TPathType = 'url' | 'local';
2016-04-30 10:07:49 +00:00
/**
* returns the type of the given path. Can be "url" or "local"
*/
export declare let type: (pathStringArg: string) => TPathType;
2016-04-30 10:07:49 +00:00
export declare let home: (pathArgument?: string) => any;
export declare type TSystemArg = 'dynamic' | 'windows' | 'linux' | 'osx';
export declare let pathLevels: (pathArg: string, systemArg?: TSystemArg) => string[];
export declare let pathLevelsBackwards: (pathArg: string, systemArg?: TSystemArg) => string[];