2020-11-23 06:09:31 +00:00
|
|
|
export function getPropertyPath(identifier: string, name: string) {
|
2021-12-04 07:25:26 +00:00
|
|
|
return identifier + ".prop." + name;
|
2020-11-09 06:42:24 +00:00
|
|
|
}
|
|
|
|
|
2020-11-23 06:09:31 +00:00
|
|
|
export function isPropertyPathCorrect(identifier: string, path: string) {
|
2021-12-04 07:25:26 +00:00
|
|
|
return path.startsWith(identifier + ".prop.");
|
2020-11-09 06:42:24 +00:00
|
|
|
}
|
|
|
|
|
2020-11-23 06:09:31 +00:00
|
|
|
export function getMethodPath(identifier: string, name: string) {
|
2021-12-04 07:25:26 +00:00
|
|
|
return identifier + ".method." + name;
|
2020-11-09 06:42:24 +00:00
|
|
|
}
|
|
|
|
|
2020-11-23 06:09:31 +00:00
|
|
|
export function isMethodPathCorrect(identifier: string, path: string) {
|
2021-12-04 07:25:26 +00:00
|
|
|
return path.startsWith(identifier + ".method.");
|
|
|
|
}
|