MCPcopy Create free account
hub / github.com/core7s/react-design-editor / updateTemplate

Method updateTemplate

src/services/api.ts:222–231  ·  view source on GitHub ↗
(id: string, props: Partial<Template>)

Source from the content-addressed store, hash-verified

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[]> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected