(id: string)
| 121 | } |
| 122 | |
| 123 | deleteComponent(id: string): Promise<Template> { |
| 124 | return new Promise((resolve, reject) => { |
| 125 | this.base |
| 126 | .delete(`/components/${id}`) |
| 127 | .then(({ data }) => { |
| 128 | resolve(data) |
| 129 | }) |
| 130 | .catch((err) => reject(err)) |
| 131 | }) |
| 132 | } |
| 133 | |
| 134 | downloadTemplate(props: Partial<Template>): Promise<{ source: string }> { |
| 135 | return new Promise((resolve, reject) => { |
nothing calls this directly
no outgoing calls
no test coverage detected