Files
behavior3editor/src/misc/path.ts
T
codetypes 2e5c08b2ad reimplement the editor use lastest antd and other libs, feature of this commit:
1. file manger
2. highlight for click input or output
3. selector of subtress
4. autocomplete for input or output
2024-04-17 10:35:51 +08:00

17 lines
328 B
TypeScript

import path from "path";
const Path = path;
declare module "path" {
interface PlatformPath {
basenameWithoutExt(path: string): string;
}
}
// eslint-disable-next-line @typescript-eslint/no-shadow
path.basenameWithoutExt = (path: string) => {
return Path.basename(path, Path.extname(path));
};
export default Path;