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