nope/lib/helpers/dispatcherPathes.ts
2021-12-04 08:25:26 +01:00

16 lines
471 B
TypeScript

export function getPropertyPath(identifier: string, name: string) {
return identifier + ".prop." + name;
}
export function isPropertyPathCorrect(identifier: string, path: string) {
return path.startsWith(identifier + ".prop.");
}
export function getMethodPath(identifier: string, name: string) {
return identifier + ".method." + name;
}
export function isMethodPathCorrect(identifier: string, path: string) {
return path.startsWith(identifier + ".method.");
}