(id: string, props: Partial<Template>)
| 220 | }) |
| 221 | } |
| 222 | updateTemplate(id: string, props: Partial<Template>): Promise<Template> { |
| 223 | return new Promise((resolve, reject) => { |
| 224 | this.base |
| 225 | .put(`/templates/${id}`, props) |
| 226 | .then(({ data }) => { |
| 227 | resolve(data) |
| 228 | }) |
| 229 | .catch((err) => reject(err)) |
| 230 | }) |
| 231 | } |
| 232 | |
| 233 | // FONTS |
| 234 | getFonts(): Promise<IFontFamily[]> { |
nothing calls this directly
no outgoing calls
no test coverage detected