(content: string)
| 8 | ) {} |
| 9 | |
| 10 | static parse<T>(content: string): JSONCFile<T> { |
| 11 | const parsed = parse(content) as T; |
| 12 | |
| 13 | return new JSONCFile(content, parsed); |
| 14 | } |
| 15 | |
| 16 | static fromObject<T>(object: T): JSONCFile<T> { |
| 17 | const content = JSON.stringify(object, null, 2); |