(obj: any)
| 279 | * @returns boolean |
| 280 | */ |
| 281 | export function isVariable(obj: any) { |
| 282 | if (!obj || Array.isArray(obj)) { |
| 283 | return false; |
| 284 | } |
| 285 | return typeof obj === 'object' && obj?.type === 'variable'; |
| 286 | } |
| 287 | |
| 288 | /** |
| 289 | * 将 i18n 结构,降级解释为对 i18n 接口的调用 |
no outgoing calls
no test coverage detected
searching dependent graphs…