nope/lib/helpers/dispatcherPathes.ts
2020-11-23 07:09:31 +01:00

15 lines
478 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.');
}