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

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