(str: string)
| 11 | } |
| 12 | |
| 13 | static fromString(str: string) { |
| 14 | var split = str.split(':'); |
| 15 | if (split.length !== 2) { |
| 16 | throw new TypeError('Cannot create Id object from this string'); |
| 17 | } |
| 18 | return new Id(split[0], split[1]); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | module.exports = Id; |
no outgoing calls
no test coverage detected