(namespace: Array<String>)
| 30 | * scopes in the namespace. |
| 31 | */ |
| 32 | export function getFullScope(namespace: Array<String>): string { |
| 33 | return namespace |
| 34 | .filter(c => c.indexOf(SCOPE_PREFIX) > -1) |
| 35 | .map(c => c.replace(SCOPE_PREFIX, '')) |
| 36 | .join('-'); |
| 37 | } |
| 38 | |
| 39 | export function getSelectors(namespace: Array<String>): string { |
| 40 | return namespace.filter(c => c.indexOf(SCOPE_PREFIX) === -1).join(' '); |
no test coverage detected