16 lines
471 B
TypeScript
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.");
|
|
}
|